/* ===================== */
/* AGENT PANEL           */
/* ===================== */
/* These styles were carried over unchanged from the previous site design (the
   old site/styles.css, now retired). The embedded voice agent lives in a
   separate app and is shown here in a floating panel. Sizing mirrors the agent
   app's own embed demo (420x640).

   The neutral navy/white/blue-gray palette below is intentionally NOT re-themed
   to match the new Formatic blue/green page. This panel is a floating overlay
   that sits on top of the page, not part of the page flow, so the palette
   mismatch is fine — keeping the proven styling untouched is worth more than a
   colour match a visitor only sees for the seconds the panel is open. */

.agent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 61, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 2000;
}

.agent-overlay.open {
  opacity: 1;
  visibility: visible;
}

.agent-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: min(420px, calc(100vw - 32px));
  height: min(640px, calc(100vh - 48px));
  background: #fff;
  border: 1px solid #e6eaf4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 27, 61, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 2001;
}

.agent-panel.open {
  opacity: 1;
  visibility: visible;
}

#agent-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.agent-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #e6eaf4;
  background: #fff;
  color: #1a2b5f;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.agent-close-btn:hover {
  background: #f4f6fa;
}

/* The "Quiero cotizar" links reuse the page's own CTA styling for their look;
   this class is only the JavaScript hook that opens the panel, so it needs just
   a pointer cursor. */
.btn-talk-agent {
  cursor: pointer;
}
