/* ═══ CHAT DE SOPORTE de la portada (23-nov, Gregory: «que aparezca el logo de WhatsApp animado y el chat más largo, que se vea mejor y
   profesional al nuevo estilo de la web») ═══
   Capa propia, cargada la última (después de landing-plans.css). Los estilos base del widget siguen inline en landing.html (#gf-*); aquí se
   repintan con `html body #gf-…` para ganarles. Lenguaje de la portada nueva: carbón, borde fino, esquinas generosas, píldoras, y el azul
   #2f7bff como único acento (mensajes del visitante y botón de enviar). El verde de WhatsApp (#25d366) es el de su marca: solo en su botón.
   La animación del logo es FINITA (suena como una llamada 4 veces y se queda quieta) y se apaga con «reducir movimiento». landing-design.css
   tiene `*{animation:none !important}`: aquí se supera con !important y un selector con ID, como hace landing-iq.css. */

/* ── Panel: más largo y ancho ── */
html body #gf-chat-panel {
  width: 410px; height: min(740px, calc(100dvh - 112px)); background: #0d0e11; border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .6);
}
html body .gf-panel-header {
  gap: 13px; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, rgba(47, 123, 255, .09), rgba(47, 123, 255, 0)), #111317;
}
html body .gf-avatar { width: 42px; height: 42px; border-radius: 13px; }
html body .gf-panel-header h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: #f6f7f9; }
html body .gf-panel-subtitle { margin-top: 3px; font-size: 12px; line-height: 1.45; color: rgba(214, 220, 228, .62); }
html body .gf-header-close { width: 32px; height: 32px; border-radius: 999px; }

/* ── Contacto directo (solo en modo soporte): correo, WhatsApp y llamada, en una fila ── */
html body .gf-contact-links { display: flex; gap: 8px; padding: 12px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: #0f1013; }
html body .gf-contact-links[hidden] { display: none; }
html body .gf-contact-links a {
  flex: 1; min-width: 0; height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 999px; background: rgba(255, 255, 255, .03);
  color: #e6e8ed; font: 600 12px/1 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
html body .gf-contact-links a:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .3); color: #fff; }
html body .gf-contact-links a:focus-visible { outline: 2px solid #2f7bff; outline-offset: 2px; }
html body .gf-contact-links svg { width: 15px; height: 15px; flex: none; }
html body .gf-contact-links a.is-wa svg { color: #25d366; }
html body .gf-contact-links a.is-wa:hover svg { animation: gf-wa-shake .9s ease-in-out 1 !important; }

/* ── Mensajes ── */
html body .gf-messages { padding: 22px 20px 14px; gap: 12px; scrollbar-color: #33353b transparent; }
html body .gf-msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 13.5px; line-height: 1.6; }
html body .gf-msg.ai { background: #15171b; border: 1px solid rgba(255, 255, 255, .07); color: rgba(226, 230, 236, .9); border-bottom-left-radius: 5px; }
html body .gf-msg.ai strong { color: #f6f7f9; }
html body .gf-msg.user { background: #2f7bff; border: 0; color: #fff; border-bottom-right-radius: 5px; }
html body .gf-typing { border-radius: 14px; border-color: rgba(255, 255, 255, .08); background: #15171b; }
html body .gf-suggestions { gap: 8px; padding: 0 20px 16px; }
html body .gf-suggestions button { padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(255, 255, 255, .03); font: 600 12px Inter, system-ui, sans-serif; color: #dfe3e9; }
html body .gf-suggestions button:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .34); }
html body .gf-notify { border-radius: 999px; }

/* ── Barra «Contact the support team» / «Back to the AI assistant», correo y caja de texto ── */
html body #gf-support-bar { width: calc(100% - 40px); margin: 0 20px 12px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .07); font: 600 12.5px Inter, system-ui, sans-serif; color: #d9dde4; }
html body .gf-contact { margin: 0 20px 10px; }
html body .gf-contact label { margin-bottom: 7px; font-size: 11.5px; color: rgba(214, 220, 228, .6); }
html body .gf-contact input { min-height: 42px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: #101216; }
html body .gf-contact input:focus { border-color: rgba(47, 123, 255, .65); box-shadow: 0 0 0 3px rgba(47, 123, 255, .18); }
html body .gf-input-row { margin: 0 20px 20px; padding: 7px 7px 7px 12px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 18px; background: #101216; }
html body .gf-input-row:focus-within { border-color: rgba(47, 123, 255, .65); box-shadow: 0 0 0 3px rgba(47, 123, 255, .18); }
html body #gf-send { width: 40px; height: 40px; border: 0; border-radius: 13px; background: #2f7bff; color: #fff; }
html body #gf-send:hover { background: #4d8dff; }
html body #gf-send:disabled { background: #1b1d22; color: #7d828c; }

/* ── Botón flotante de WhatsApp (a la izquierda del botón del chat; el del auricular se quitó el 23-nov) ── */
html body #gf-wa-fab {
  position: fixed; bottom: 24px; right: 88px; z-index: 9000; width: 52px; height: 52px; display: grid; place-items: center; isolation: isolate;
  border: 0; border-radius: 16px; background: #25d366; color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  transition: background-color .2s, transform .2s;
  animation: gf-wa-in .55s cubic-bezier(.2, .9, .3, 1.15) 1.6s backwards !important;
}
html body #gf-wa-fab:hover { background: #2be074; transform: translateY(-2px); }
html body #gf-wa-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
html body #gf-wa-fab .gf-wa-ring { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: rgba(37, 211, 102, .5); pointer-events: none; animation: gf-wa-ring 2.4s ease-out 2.4s 4 backwards !important; }
html body #gf-wa-fab .gf-wa-logo { width: 30px; height: 30px; transform-origin: 50% 55%; animation: gf-wa-shake 2.4s ease-in-out 2.4s 4 !important; }
html body #gf-wa-fab:hover .gf-wa-logo { animation: gf-wa-shake .9s ease-in-out 1 !important; }

@keyframes gf-wa-in { from { opacity: 0; transform: translateY(10px) scale(.8); } }
@keyframes gf-wa-ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.6); } }
@keyframes gf-wa-shake {
  0%, 52%, 100% { transform: rotate(0); }
  6% { transform: rotate(-16deg); } 13% { transform: rotate(14deg); } 20% { transform: rotate(-12deg); } 27% { transform: rotate(10deg); } 34% { transform: rotate(-6deg); } 41% { transform: rotate(4deg); }
}

@media (max-width: 640px), (max-height: 500px) {
  html body #gf-wa-fab { right: 72px; bottom: max(16px, env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 14px; }
  html body #gf-wa-fab .gf-wa-logo { width: 27px; height: 27px; }
}
@media (max-width: 440px) {
  html body #gf-chat-panel { width: calc(100vw - 24px); height: min(680px, calc(100dvh - 100px)); border-radius: 18px; }
  html body .gf-contact-links { padding: 10px 14px; gap: 6px; }
  html body .gf-contact-links a { padding: 0 6px; font-size: 11.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html body #gf-wa-fab, html body #gf-wa-fab .gf-wa-ring, html body #gf-wa-fab .gf-wa-logo, html body .gf-contact-links a.is-wa:hover svg { animation: none !important; }
  html body #gf-wa-fab { transition: none; }
}

/* ── Tarjeta del teléfono de soporte (landing-phone.js, 23-nov): sale al pulsar el botón verde de WhatsApp ── */
html body #gf-phone-card {
  position: fixed; right: 24px; bottom: 88px; z-index: 9001; width: 300px; box-sizing: border-box; padding: 16px 18px 18px;
  background: #0d0e11; border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; box-shadow: 0 28px 80px rgba(0, 0, 0, .6);
  color: #f6f7f9; font-family: Inter, system-ui, sans-serif;
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); pointer-events: none; transform-origin: 85% 100%;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s !important;
}
html body #gf-phone-card.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s !important; }
html body #gf-phone-card .gf-ph-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
html body #gf-phone-card .gf-ph-label { font: 600 10px/1 Inter, system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(214, 220, 228, .6); }
html body #gf-phone-card .gf-ph-x { width: 28px; height: 28px; margin: -6px -8px 0 0; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: transparent; color: rgba(214, 220, 228, .6); cursor: pointer; }
html body #gf-phone-card .gf-ph-x:hover { background: rgba(255, 255, 255, .07); color: #fff; }
html body #gf-phone-card .gf-ph-x svg { width: 15px; height: 15px; }
html body #gf-phone-card .gf-ph-num { display: block; margin-top: 12px; font: 800 28px/1.1 Inter, system-ui, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #f6f7f9; text-decoration: none; }
html body #gf-phone-card .gf-ph-num:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
html body #gf-phone-card .gf-ph-sub { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(214, 220, 228, .66); }
html body #gf-phone-card .gf-ph-actions { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; margin-top: 16px; }
html body #gf-phone-card .gf-ph-btn {
  height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: transparent; color: #e6e8ed; cursor: pointer;
  font: 600 12.5px/1 Inter, system-ui, sans-serif; text-decoration: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s !important;
}
html body #gf-phone-card .gf-ph-btn svg { width: 15px; height: 15px; flex: none; }
html body #gf-phone-card .gf-ph-btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .26); color: #fff; }
html body #gf-phone-card .gf-ph-btn.is-wa { border-color: #25d366; background: #25d366; color: #06210f; }
html body #gf-phone-card .gf-ph-btn.is-wa:hover { background: #2be074; border-color: #2be074; color: #06210f; }
html body #gf-phone-card .gf-ph-btn.is-done { border-color: rgba(47, 197, 138, .6); color: #2fc58a; }
html body #gf-phone-card a:focus-visible, html body #gf-phone-card button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px), (max-height: 500px) {
  html body #gf-phone-card { right: 12px; bottom: max(70px, calc(env(safe-area-inset-bottom) + 62px)); width: min(340px, calc(100vw - 24px)); }
}
@media (prefers-reduced-motion: reduce) {
  html body #gf-phone-card { transition: none !important; }
}
