/* ============================================
   MAYORAZGO GPT — Styles
   Fuente: Montserrat
   Colores: #4EB1B6 (teal), #444444 (gris), #FFFFFF
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal:          #4a8fb5;
  --teal-dark:     #3a7a9e;
  --teal-vibrant:  #2cb5c0;
  --teal-light:    #eaf3f8;
  --navy:          #1a2f44;
  --gray-text:     #444444;
  --gray-light:    #888888;
  --gray-border:   #e4e8ea;
  --gray-bg:       #f7f9fa;
  --warm-bg:       #f5f2ef;
  --white:         #ffffff;
  --green-wa:      #25D366;
  --red-hang:      #ef4444;
  --red-hang-dark: #dc2626;

  --font:          'Montserrat', sans-serif;
  --font-display:  'DM Serif Display', serif;
  --radius:        16px;
  --radius-sm:     10px;
  --shadow-sm:     0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:     0 2px 12px rgba(0,0,0,0.09);
  --shadow-lg:     0 6px 24px rgba(0,0,0,0.11);

  --header-h:      64px;
  --content-max:   760px;
}

html {
  height: 100%;
  height: 100dvh;
}

body {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  color: var(--gray-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   INTRO ANIMATION
   ============================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #87CEEB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.intro video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-skip {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 7px 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.intro-skip:hover {
  background: rgba(255, 255, 255, 0.28);
}

.intro--fade-out {
  opacity: 0;
  pointer-events: none;
}

/* App elements — hidden until intro ends */
.app--hidden {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.app--hidden.app--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entrance for page elements */
.header.app--hidden.app--visible {
  transition-delay: 0s;
}

.main-content.app--hidden.app--visible {
  transition-delay: 0.1s;
}

/* Phase 2: Logo dramatic reveal */
.intro-logo-target {
  opacity: 0;
  transform: scale(0.85);
}

.intro-logo-target.logo--revealed {
  animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes logoReveal {
  0% {
    opacity: 0;
    transform: scale(0.85);
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================
   HEADER (unified with tabs)
   ============================================ */
.header {
  flex-shrink: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228,232,234,0.6);
  z-index: 10;
  position: sticky;
  top: 0;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
}

.header-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.header-tabs {
  display: flex;
  gap: 4px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: none;
  border: none;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-light);
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  user-select: none;
}

.tab-btn:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.tab-btn.active {
  color: var(--white);
  background: var(--teal);
  font-weight: 600;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: var(--white);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s, transform 0.18s;
  white-space: nowrap;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* ============================================
   PANELS
   ============================================ */
.panel {
  display: none;
  flex: 1;
  overflow: hidden;
}

.panel.active {
  display: flex;
  flex-direction: column;
}

/* ============================================
   CHAT LAYOUT
   ============================================ */
.chat-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* ============================================
   CHAT EMPTY STATE
   ============================================ */
.chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 36px;
  background: transparent;
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: relative;
  overflow: hidden;
}

/* Video background */
.chat-empty__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

.chat-empty.exit-anim {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.chat-empty__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Brand logo — HTML/CSS */
.brand-logo-img {
  max-width: 280px;
  height: auto;
  animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.015); }
}

/* Greeting */
.chat-empty__greeting {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}

.chat-empty__subtitle {
  font-size: 14px;
  color: var(--gray-light);
  max-width: 400px;
  line-height: 1.5;
  min-height: 21px;
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--teal);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* FAQ Grid — 2x2 */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.faq-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  text-align: left;
  font-size: 13px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color 0.18s, transform 0.15s, box-shadow 0.18s, background 0.18s;
  color: var(--gray-text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.45;
  box-shadow: var(--shadow-sm);
}

.faq-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--teal-light);
}

.faq-card__icon {
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 1px;
}

.faq-card__text {
  flex: 1;
}

/* ============================================
   MESSAGES AREA
   ============================================ */
.messages-area {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scroll-behavior: smooth;
}

/* ============================================
   MESSAGES — Row style (Figma design)
   ============================================ */
.message {
  width: 100%;
  padding: 20px 24px;
  animation: msgIn 0.2s ease-out;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message--user {
  background: var(--warm-bg);
}

.message--ai {
  background: var(--white);
}

.message__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.message__avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.message--user .message__avatar {
  background: #2d3748;
  color: var(--white);
}

.message--ai .message__avatar {
  background: var(--teal-light);
  overflow: hidden;
}

.message--ai .message__avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.message__body {
  flex: 1;
  min-width: 0;
}

.message__role {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-text);
  margin-bottom: 6px;
}

.message__text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
}

.message__text p + p {
  margin-top: 8px;
}

/* ============================================
   TYPING INDICATOR
   ============================================ */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 0;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--gray-light);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* ============================================
   PROMPT BOX — ChatGPT-style input
   ============================================ */
.prompt-box-wrapper {
  padding: 14px 24px 16px;
  background: var(--white);
}

.prompt-box {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, var(--teal), var(--teal-vibrant), var(--navy)) border-box;
  padding: 8px;
  transition: box-shadow 0.3s;
  cursor: text;
}

.prompt-box:focus-within {
  box-shadow: 0 0 0 3px rgba(44, 181, 192, 0.15);
}

/* Image preview */
.prompt-preview {
  position: relative;
  width: fit-content;
  margin: 4px 4px 4px 8px;
}

.prompt-preview img {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
}

.prompt-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.7);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--gray-text);
}

.prompt-preview-remove:hover {
  background: rgba(255,255,255,0.95);
}

/* Textarea */
.prompt-textarea {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 12px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-text);
  outline: none;
  resize: none;
  min-height: 44px;
  max-height: 200px;
  overflow-y: auto;
  line-height: 1.5;
}

.prompt-textarea::placeholder {
  color: #bbbec2;
}

/* Toolbar */
.prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 0;
}

.prompt-toolbar-left {
  display: flex;
  align-items: center;
  gap: 4px;
}

.prompt-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Tool buttons (generic) */
.prompt-tool-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--gray-text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.prompt-tool-btn:hover {
  background: var(--teal-light);
  color: var(--teal);
}

/* Tools toggle (has label) */
.prompt-tools-toggle {
  width: auto;
  padding: 0 10px;
  gap: 6px;
  border-radius: 20px;
  font-family: var(--font);
  font-size: 13px;
}

.prompt-tools-label {
  color: inherit;
  font-weight: 500;
}

/* Tools dropdown */
.prompt-tools-dropdown {
  position: relative;
}

.prompt-tools-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  animation: menuIn 0.15s ease-out;
}

@keyframes menuIn {
  from { opacity: 0; transform: translateY(4px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.prompt-tools-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-text);
  cursor: pointer;
  transition: background 0.12s;
  text-align: left;
}

.prompt-tools-item:hover {
  background: var(--teal-light);
  color: var(--teal);
}

/* Active tool chip */
.prompt-active-tool {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prompt-tool-divider {
  width: 1px;
  height: 16px;
  background: var(--gray-border);
}

.prompt-active-tool-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  border: none;
  background: var(--teal-light);
  color: var(--teal);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.prompt-active-tool-chip:hover {
  background: #d5e8f2;
}

/* Send button */
.prompt-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
}

.prompt-send-btn:hover:not(:disabled) {
  background: var(--teal-dark);
  transform: scale(1.07);
}

.prompt-send-btn:disabled {
  background: var(--gray-border);
  color: #bbbec2;
  cursor: default;
}

/* Trust footer */
.prompt-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #b0b5b9;
  margin-top: 8px;
  letter-spacing: 0.1px;
}

/* ============================================
   VOICE LAYOUT — Siri-style
   ============================================ */
.voice-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--white);
}

/* Ambient particles */
.voice-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.voice-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s infinite ease-in-out;
}

.voice-particle:nth-child(1)  { left: 10%; top: 20%; animation-delay: 0s;    animation-duration: 7s;  }
.voice-particle:nth-child(2)  { left: 25%; top: 60%; animation-delay: 1s;    animation-duration: 9s;  }
.voice-particle:nth-child(3)  { left: 45%; top: 15%; animation-delay: 2s;    animation-duration: 6s;  }
.voice-particle:nth-child(4)  { left: 70%; top: 40%; animation-delay: 0.5s;  animation-duration: 8s;  }
.voice-particle:nth-child(5)  { left: 85%; top: 70%; animation-delay: 3s;    animation-duration: 10s; }
.voice-particle:nth-child(6)  { left: 55%; top: 80%; animation-delay: 1.5s;  animation-duration: 7s;  }
.voice-particle:nth-child(7)  { left: 15%; top: 75%; animation-delay: 4s;    animation-duration: 9s;  }
.voice-particle:nth-child(8)  { left: 90%; top: 15%; animation-delay: 2.5s;  animation-duration: 6s;  }
.voice-particle:nth-child(9)  { left: 35%; top: 45%; animation-delay: 3.5s;  animation-duration: 11s; }
.voice-particle:nth-child(10) { left: 60%; top: 25%; animation-delay: 0.8s;  animation-duration: 8s;  }
.voice-particle:nth-child(11) { left: 80%; top: 55%; animation-delay: 5s;    animation-duration: 7s;  }
.voice-particle:nth-child(12) { left: 5%;  top: 45%; animation-delay: 2.2s;  animation-duration: 9s;  }

@keyframes particleFloat {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  20% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.15;
    transform: translateY(-30px) scale(1.3);
  }
  80% {
    opacity: 0.1;
  }
}

/* Background glow */
.voice-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 360px;
  height: 360px;
  transform: translate(-50%, -55%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74,143,181,0.12) 0%, rgba(44,181,192,0.06) 40%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -55%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -55%) scale(1.15); }
}

/* Voice hero */
.voice-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* ============================================
   VOICE ORB — Main button
   ============================================ */
.voice-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.call-btn {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid var(--gray-border);
  background: linear-gradient(145deg, rgba(74,143,181,0.08), rgba(44,181,192,0.04));
  color: var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  font-size: 0;
  padding: 0;
  min-width: auto;
}

.call-btn:hover {
  border-color: rgba(74,143,181,0.4);
  background: linear-gradient(145deg, rgba(74,143,181,0.12), rgba(44,181,192,0.06));
}

/* Icon visibility logic */
.voice-orb__icon { transition: opacity 0.25s, transform 0.25s; }
.voice-orb__spinner { position: absolute; opacity: 0; }
.voice-orb__mic { opacity: 1; }

/* Idle state */
.call-btn--idle { color: var(--gray-light); }
.call-btn--idle .voice-orb__mic { opacity: 1; }
.call-btn--idle .voice-orb__spinner { opacity: 0; }

/* Calling/connecting state */
.call-btn--calling {
  border-color: var(--teal);
  background: linear-gradient(145deg, rgba(74,143,181,0.12), rgba(44,181,192,0.08));
  color: var(--teal);
  cursor: default;
}
.call-btn--calling .voice-orb__mic { opacity: 0; }
.call-btn--calling .voice-orb__spinner {
  opacity: 1;
  animation: spinOrb 1s linear infinite;
}

@keyframes spinOrb {
  to { transform: rotate(360deg); }
}

/* Active/in-call state */
.call-btn--active {
  border-color: var(--teal);
  background: linear-gradient(145deg, rgba(74,143,181,0.15), rgba(44,181,192,0.1));
  color: var(--teal);
  box-shadow: 0 0 24px rgba(74,143,181,0.2);
}
.call-btn--active .voice-orb__mic { opacity: 1; color: var(--teal); }
.call-btn--active .voice-orb__spinner { opacity: 0; }

/* Pulse rings */
.voice-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(74,143,181,0.25);
  pointer-events: none;
  opacity: 0;
}

.voice-orb.is-calling .voice-pulse {
  animation: pulseRing 2s ease-out infinite;
}

.voice-orb.is-calling .voice-pulse--delay {
  animation: pulseRing 2s ease-out infinite 0.6s;
}

@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Status text */
.voice-status-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  min-height: 22px;
  transition: color 0.3s;
  animation: statusPulse 2.5s ease-in-out infinite;
}

.voice-status-text:empty {
  animation: none;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}

.voice-status-label {
  font-size: 13px;
  color: var(--gray-light);
  font-weight: 400;
}

/* AI badge */
.voice-ai-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-light);
  margin-top: 4px;
  animation: badgeFade 3.5s ease-in-out infinite;
}

.voice-ai-badge svg {
  color: var(--teal);
}

@keyframes badgeFade {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Features */
.voice-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
  max-width: 340px;
  width: 100%;
}

.voice-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-text);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--gray-border);
}

.voice-feature svg {
  color: var(--teal);
  flex-shrink: 0;
}

/* ============================================
   WAVEFORM — Siri-style bars
   ============================================ */
.waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 56px;
  width: 100%;
  max-width: 320px;
}

.bar {
  flex: 1;
  max-width: 6px;
  border-radius: 3px;
  background: var(--teal);
  height: 6px;
  animation: waveBar 1s infinite ease-in-out;
}

/* Stagger animation across all 23 bars — symmetric from center */
.bar:nth-child(1)  { animation-delay: 0.0s;  }
.bar:nth-child(2)  { animation-delay: 0.06s; }
.bar:nth-child(3)  { animation-delay: 0.12s; }
.bar:nth-child(4)  { animation-delay: 0.18s; }
.bar:nth-child(5)  { animation-delay: 0.24s; }
.bar:nth-child(6)  { animation-delay: 0.30s; }
.bar:nth-child(7)  { animation-delay: 0.36s; }
.bar:nth-child(8)  { animation-delay: 0.42s; }
.bar:nth-child(9)  { animation-delay: 0.48s; }
.bar:nth-child(10) { animation-delay: 0.52s; }
.bar:nth-child(11) { animation-delay: 0.56s; }
.bar:nth-child(12) { animation-delay: 0.58s; }
.bar:nth-child(13) { animation-delay: 0.56s; }
.bar:nth-child(14) { animation-delay: 0.52s; }
.bar:nth-child(15) { animation-delay: 0.48s; }
.bar:nth-child(16) { animation-delay: 0.42s; }
.bar:nth-child(17) { animation-delay: 0.36s; }
.bar:nth-child(18) { animation-delay: 0.30s; }
.bar:nth-child(19) { animation-delay: 0.24s; }
.bar:nth-child(20) { animation-delay: 0.18s; }
.bar:nth-child(21) { animation-delay: 0.12s; }
.bar:nth-child(22) { animation-delay: 0.06s; }
.bar:nth-child(23) { animation-delay: 0.0s;  }

@keyframes waveBar {
  0%, 100% { height: 6px;  opacity: 0.35; }
  50%      { height: 40px; opacity: 1;    }
}

.waveform.agent-talking .bar {
  animation-duration: 0.5s;
  background: var(--teal);
}

.waveform.user-talking .bar {
  animation-duration: 0.75s;
  background: var(--navy);
}

.waveform.is-live .bar {
  animation: none;
  transition: height 0.06s ease-out, opacity 0.06s ease-out;
}

/* ============================================
   TRANSCRIPT
   ============================================ */
.transcript-box {
  width: 100%;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 24px;
  text-align: left;
}

.transcript-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: var(--gray-bg);
  border-bottom: 1px solid var(--gray-border);
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transcript-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: dotPulse 1.2s infinite;
  flex-shrink: 0;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.transcript-messages {
  max-height: 180px;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.transcript-msg {
  display: flex;
  gap: 6px;
}

.transcript-msg__role {
  font-weight: 700;
  flex-shrink: 0;
  font-size: 12px;
}

.transcript-msg--agent .transcript-msg__role { color: var(--teal); }
.transcript-msg--user  .transcript-msg__role { color: var(--gray-text); }

.transcript-msg__text { color: var(--gray-text); }

.hidden { display: none !important; }

/* ============================================
   SCROLLBAR
   ============================================ */
.messages-area::-webkit-scrollbar {
  width: 5px;
}
.messages-area::-webkit-scrollbar-track {
  background: transparent;
}
.messages-area::-webkit-scrollbar-thumb {
  background: var(--gray-border);
  border-radius: 3px;
}
.messages-area::-webkit-scrollbar-thumb:hover {
  background: #c8cdd0;
}

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 600px) {
  .header-inner {
    padding: 0 12px;
    gap: 8px;
  }
  .header-logo {
    height: 40px;
  }
  .btn-whatsapp {
    padding: 7px 12px;
    font-size: 11px;
  }
  .btn-whatsapp svg {
    display: none;
  }
  .tab-btn {
    padding: 5px 12px;
    font-size: 12px;
  }
  .tab-btn svg {
    display: none;
  }
  .brand-logo-img {
    max-width: 200px;
  }
  .chat-empty__greeting {
    font-size: 17px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .message {
    padding: 16px;
  }
  .prompt-box-wrapper {
    padding: 10px 12px 12px;
  }
  .prompt-tools-label {
    display: none;
  }
  .voice-features {
    grid-template-columns: 1fr;
  }
  .call-btn {
    width: 100px;
    height: 100px;
  }
  .voice-orb__icon {
    width: 32px;
    height: 32px;
  }
  .voice-glow {
    width: 260px;
    height: 260px;
  }
  .waveform {
    max-width: 260px;
  }
}
