@charset "utf-8";
/* CSS Document */

/* ═══════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/*body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f0f2f5;
  min-height: 100vh;
}*/
/*.content {
  max-width: 900px;
  margin: 40px auto;
  background: white;
  padding: 48px;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.content h1 {
  color: #1a1a2e;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}
.content p {
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 16px;
  font-size: 15px;
}*/

/* ═══════════════════════════════════════════
   LAUNCHER BUTTON (Esquina inferior derecha)
   ═══════════════════════════════════════════ */
.va-launcher {
  position: fixed;
  bottom: 56px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 20px 6px 6px;
  border-radius: 60px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(108, 99, 255, 0.35), 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 10000;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: none;
  outline: none;
  animation: launcher-entrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}
@keyframes launcher-entrance {
  from {
    transform: scale(0) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}
.va-launcher:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(108, 99, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.15);
}
.va-launcher:active {
  transform: translateY(0) scale(0.98);
}
.va-launcher.call-active {
  animation: launcher-glow 2s ease-in-out infinite;
}
@keyframes launcher-glow {
  0%, 100% {
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.3), 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  50% {
    box-shadow: 0 4px 32px rgba(34, 197, 94, 0.55), 0 2px 8px rgba(0, 0, 0, 0.1);
  }
}
.va-launcher-avatar {
  position: relative;
  flex-shrink: 0;
}
.va-launcher-avatar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.6);
  display: block;
}
.va-launcher-status {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 13px;
  height: 13px;
  background: #22c55e;
  border-radius: 50%;
  border: 2.5px solid white;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0);
  }
}
.va-launcher-label {
  color: white;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════
   OVERLAY
   ═══════════════════════════════════════ */
.va-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  /*backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);*/
  z-index: 10001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.va-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════════
   WIDGET WINDOW
   ═══════════════════════════════════════ */
.va-window {
  position: fixed;
  bottom: 96px;
  right: 28px;
  width: 400px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.04);
  z-index: 10002;
  overflow: hidden;
  transform: scale(0.6) translateY(30px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.va-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ── Header ─────────────────────────── */
.va-header {
  padding: 28px 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.va-header-info h3 {
  color: white;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.va-header-info p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}
.va-close-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 2px;
}
.va-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

/* ── Body ───────────────────────────── */
.va-body {
  padding: 32px 32px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ── Agent Avatar ───────────────────── */
.va-agent-avatar {
  position: relative;
  margin-bottom: 28px;
}
.va-agent-avatar img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e5e7eb;
  display: block;
  transition: border-color 0.4s ease;
}
.va-agent-avatar.speaking img {
  border-color: var(--va-primary, #6C63FF);
}
.va-agent-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  transition: all 0.4s ease;
  pointer-events: none;
}
.va-agent-avatar.speaking .va-agent-ring {
  border-color: var(--va-primary, #6C63FF);
  animation: ring-pulse 2s ease-in-out infinite;
}
@keyframes ring-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.3;
  }
}
.va-agent-name {
  margin-top: 8px;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 500;
}

/* ── Mic Section ────────────────────── */
.va-mic-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  width: 100%;
}
.va-mic-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  position: relative;
  color: #9ca3af;
}
.va-mic-btn svg {
  width: 30px; /* ← SVG más grande */
  height: 30px;
  transition: all 0.3s ease;
}
.va-mic-btn.active {
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.12), rgba(139, 92, 246, 0.12));
  color: var(--va-primary, #6C63FF);
}
.va-mic-btn.active svg {
  stroke: var(--va-primary, #6C63FF);
}
.va-mic-btn.pulsing {
  animation: mic-pulse 2s ease-in-out infinite;
}
@keyframes mic-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0.35);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(108, 99, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(108, 99, 255, 0);
  }
}
.va-mic-text {
  color: #6b7280;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 300px;
  transition: all 0.3s ease;
}

/* ── Volume Bars ────────────────────── */
.va-volume-bars {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.va-volume-bars.visible {
  opacity: 1;
}
.va-volume-bars span {
  width: 3.5px;
  background: var(--va-primary, #6C63FF);
  border-radius: 3px;
  transition: height 0.08s ease;
  height: 3px;
  min-height: 3px;
}

/* ── Call Button ────────────────────── */
.va-call-btn {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.va-call-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.va-call-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.va-call-btn:active:not(:disabled) {
  transform: translateY(0);
  filter: brightness(0.95);
}
.va-call-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  filter: none !important;
  box-shadow: none !important;
}

/* ── Status ─────────────────────────── */
.va-status {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 18px;
  min-height: 20px;
  transition: color 0.3s;
  font-weight: 500;
}
.va-status.connected {
  color: #22c55e;
}

/* ═══════════════════════════════════════
   NOTIFICATIONS
   ═══════════════════════════════════════ */
.va-notification {
  position: fixed;
  top: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: 14px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  z-index: 11000;
  max-width: 360px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transform: translateX(calc(100% + 30px));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1.4;
}
.va-notification.show {
  transform: translateX(0);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  .content {
    padding: 24px;
    margin: 20px auto;
  }
  .va-window {
    width: calc(100vw - 16px);
    right: 8px;
    bottom: 88px;
    border-radius: 20px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
	
  /* En móvil reducir un poco los tamaños para que quepa */
  .va-agent-avatar img {
    width: 110px;
    height: 110px;
  }
  .va-body {
    padding: 24px 24px 28px;
  }
  .va-mic-btn {
    width: 64px;
    height: 64px;
  }
  .va-launcher {
    bottom: 20px;
    right: 20px;
  }
  .va-launcher-label {
    display: none;
  }
  .va-launcher {
    padding: 6px;
    border-radius: 50%;
    width: 62px;
    height: 62px;
    justify-content: center;
  }
  .va-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* ═══════════════════════════════════════
   MODAL DE CONSENTIMIENTO
   ═══════════════════════════════════════ */
.va-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.va-consent-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.va-consent-card {
  background: white;
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  transform: scale(0.85) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.va-consent-overlay.visible .va-consent-card {
  transform: scale(1) translateY(0);
}
.va-consent-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
}
.va-consent-title {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.va-consent-message {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
  margin: 0 0 28px;
}
.va-consent-buttons {
  display: flex;
  gap: 10px;
  width: 100%;
}
.va-consent-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.va-consent-btn:hover {
  transform: translateY(-1px);
}
.va-consent-btn:active {
  transform: translateY(0);
}
.va-consent-btn-decline {
  background: #f3f4f6;
  color: #6b7280;
}
.va-consent-btn-decline:hover {
  background: #e5e7eb;
  color: #374151;
}
.va-consent-btn-accept {
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.va-consent-btn-accept:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.va-consent-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #9ca3af;
  user-select: none;
}
.va-consent-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--va-primary, #6C63FF);
  cursor: pointer;
}
@media (max-width: 480px) {
  .va-consent-card {
    padding: 28px 24px 24px;
  }
  .va-consent-buttons {
    flex-direction: column-reverse;
  }
}
