/* Welcome caller — «el llamador» del recibimiento (15-oct-2026).
   Burbuja de texto del agente sobre la barra de chat + latidos de mic / enviar.
   Solo actúa si public/js/welcome_caller.js monta (features.welcomeCaller). */

.gx-welcome-caller {
    /* Dentro de .gx-landing-hero-overlay, antes del <h1>: hereda su ancho y anclaje. */
    margin: 0 0 14px;
    display: flex;
    justify-content: flex-start;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease;
}
.gx-welcome-caller.is-in {
    opacity: 1;
    transform: translateY(0);
}
.gx-welcome-caller-bubble {
    pointer-events: auto;
    position: relative;
    max-width: 100%;
    padding: 10px 36px 10px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 6px;
    background: rgba(18, 18, 18, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 15px;
    line-height: 1.35;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.gx-welcome-caller-name {
    display: block;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
    margin-bottom: 2px;
}
.gx-welcome-caller-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 12px;
    line-height: 24px;
    padding: 0;
    cursor: pointer;
}
.gx-welcome-caller-close:hover { background: rgba(255, 255, 255, 0.24); }

/* Mientras se graba / transcribe, la burbuja no estorba. */
body.gx-dictating .gx-welcome-caller,
body.gx-transcribing .gx-welcome-caller { display: none; }

/* Botón del hero mientras invita a oír: latido suave hasta el primer toque. */
.gx-landing-play-btn.gx-welcome-caller-cta {
    animation: gxCallerGlow 1.8s ease-in-out infinite;
}

/* Latido compartido: micrófono (después del guion) y botón blanco de enviar
   (cuando hay texto en el input). El JS garantiza que nunca laten a la vez. */
#btnMicDictate.gx-caller-pulse {
    background: rgba(255, 255, 255, 0.16) !important;
    animation: gxCallerPulse 1.4s ease-in-out infinite !important;
}
#gxSendBtn.gx-caller-pulse {
    animation: gxCallerPulse 1.4s ease-in-out infinite !important;
}

@keyframes gxCallerPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); transform: scale(1); }
    50%      { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); transform: scale(1.06); }
}
@keyframes gxCallerGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45); }
    50%      { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

@media (max-width: 620px) {
    .gx-welcome-caller-bubble { font-size: 14.5px; }
}
