/* ===========================================================================
   Monova · botón flotante y pantalla de llamada
   ---------------------------------------------------------------------------
   La pantalla imita una llamada de contacto real: avatar circular con el logo,
   nombre, estado, y fila de controles. Se lee al instante porque todo el mundo
   ha visto esa pantalla antes.

   Verde de llamada propio (#1FD65F), NO el #25D366 de marca de WhatsApp.
   Elevación por luz, no por sombra: sobre #050B14 una sombra negra no se ve.
   Sólo se animan transform y opacity.
   =========================================================================== */

.mv-call {
  --mv-green:    #1FD65F;
  --mv-green-dk: #12A34A;
  --mv-green-lt: #5CF08C;
  --mv-red:      #E5484D;
  --mv-red-lt:   #FF6B6B;
  --mv-on-green: #04140A;   /* la letra sobre el verde de llamada */
  /* El #25D366 DE MARCA de WhatsApp. La cabecera de este fichero dice que el
     boton de llamar NO lo usa, y sigue siendo cierto: aquel evoca una llamada y
     no es WhatsApp. Este boton abre WhatsApp de verdad, asi que aqui el verde de
     marca es lo correcto — y ademas lo que hace que se reconozca sin leerlo. */
  --mv-wa:       #25D366;
  --mv-wa-dk:    #1DA851;

  --mv-ground:   #001A2B;   /* fondo de Monova */
  --mv-deep:     #001A2B;   /* era #081C38: azul noche del CLIENTE */
  --mv-surface:  #00263D;   /* era #0D2B52: azul oscuro del CLIENTE */
  --mv-cyan:     #0B7FBF;   /* la traza del circuito */
  --mv-blue:     #006196;   /* el petroleo del logo */
  --mv-gold:     #F9DC10;   /* el amarillo del logo de Monova */
  --mv-ink:      #FDF8ED;   /* el marfil del logo */
  --mv-ink-dim:  #8B9BA3;   /* el secundario */
  --mv-line:     rgba(14, 165, 233, .16);

  --mv-size: 66px;
  --mv-edge: 24px;

  position: fixed;
  right:  max(var(--mv-edge), env(safe-area-inset-right, 0px));
  bottom: max(var(--mv-edge), env(safe-area-inset-bottom, 0px));
  z-index: 2147483000;
  /* Outfit, la familia UNICA de Monova. Aqui ponia Inter, que es la tipografia
     del cliente y una de las tres prohibidas (CLAUDE.md, «Lo que no puede
     aparecer»). La landing carga Outfit; donde no este, cae a la del sistema. */
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------------- BOTÓN --- */

.mv-call__btn {
  position: relative;
  display: grid; place-items: center;
  width: var(--mv-size); height: var(--mv-size);
  padding: 0; border: 0; border-radius: 50%;
  cursor: pointer; color: var(--mv-on-green);
  background: linear-gradient(145deg, var(--mv-green-lt) 0%, var(--mv-green) 42%, var(--mv-green-dk) 100%);
  box-shadow:
    0 0 0 1px rgba(31, 214, 95, .5),
    0 0 34px rgba(31, 214, 95, .42),
    0 18px 40px -14px rgba(31, 214, 95, .55);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}
.mv-call__btn:hover,
.mv-call__btn:focus-visible { transform: scale(1.07); }
.mv-call__btn:active        { transform: scale(.96); }
.mv-call__btn:focus-visible { outline: 3px solid var(--mv-cyan); outline-offset: 4px; }

.mv-call__icon { width: 30px; height: 30px; display: block; transform: rotate(-8deg); }

.mv-call__pulse {
  position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--mv-green);
  opacity: 0; pointer-events: none;
  animation: mv-pulse 2.8s cubic-bezier(.22, 1, .36, 1) infinite;
}
.mv-call__pulse--b { animation-delay: 1.4s; }
@keyframes mv-pulse {
  0%   { transform: scale(1);    opacity: .65; }
  70%,
  100% { transform: scale(1.85); opacity: 0; }
}
.mv-call.is-quiet .mv-call__pulse { animation: none; opacity: 0; }

.mv-call__label {
  position: absolute; right: calc(100% + 14px); top: 50%;
  white-space: nowrap; padding: 9px 15px; border-radius: 999px;
  font-size: .87rem; font-weight: 600; color: var(--mv-ink);
  background: var(--mv-deep); border: 1px solid var(--mv-line);
  opacity: 0; transform: translateY(-50%) translateX(10px);
  transition: opacity .22s ease, transform .22s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.mv-call__btn:hover + .mv-call__label,
.mv-call__btn:focus-visible + .mv-call__label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* En llamada el botón se vuelve rojo y el auricular gira: colgar. */
.mv-call.is-live .mv-call__btn {
  background: linear-gradient(145deg, var(--mv-red-lt) 0%, var(--mv-red) 55%, #B4262B 100%);
  box-shadow:
    0 0 0 1px rgba(229, 72, 77, .5),
    0 0 34px rgba(229, 72, 77, .40),
    0 18px 40px -14px rgba(229, 72, 77, .5);
  color: #fff;
}
.mv-call.is-live .mv-call__icon { transform: rotate(133deg); }

/* ---------------------------------------------------------------- PANEL --- */

.mv-call__panel {
  position: absolute; right: 0; bottom: calc(var(--mv-size) + 16px);
  width: min(320px, calc(100vw - 32px));
  border-radius: 20px; overflow: hidden;
  background:
    radial-gradient(420px 260px at 50% -8%, rgba(37, 99, 235, .26), transparent 68%),
    var(--mv-deep);
  border: 1px solid var(--mv-line);
  box-shadow: 0 0 0 1px rgba(14, 165, 233, .08), 0 30px 70px -28px rgba(0, 0, 0, .95);
  color: var(--mv-ink);
  opacity: 0; transform: translateY(10px) scale(.97);
  transform-origin: bottom right;
  transition: opacity .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1);
  pointer-events: none;
}
.mv-call.is-open .mv-call__panel { opacity: 1; transform: none; pointer-events: auto; }
/* Con la ficha abierta el panel crece: cabe en la pantalla y se desplaza por
   dentro, nunca la empuja. dvh y no vh, por la barra del navegador en movil. */
.mv-call__panel {
  max-height: calc(100vh - var(--mv-size) - 40px);
  max-height: calc(100dvh - var(--mv-size) - 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ----------------------------------------------------------- CONSENTIM. --- */

.mv-call__consent { padding: 20px; }

.mv-call__title { margin: 0 0 6px; font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }
.mv-call__text  { margin: 0 0 14px; font-size: .85rem; line-height: 1.6; color: var(--mv-ink-dim); }
.mv-call__text strong { color: var(--mv-ink); font-weight: 600; }
.mv-call__text a      { color: var(--mv-cyan); }

/* El oro marca el dato que importa. Rol semántico único. */
.mv-call__notice {
  margin: 0 0 16px; padding: 11px 13px;
  border-left: 2px solid var(--mv-gold);
  background: rgba(242, 201, 76, .07);
  border-radius: 0 6px 6px 0;
  font-size: .78rem; line-height: 1.55; color: var(--mv-ink-dim);
}
.mv-call__notice b { color: var(--mv-ink); font-weight: 600; }

.mv-call__actions { display: flex; flex-direction: column; gap: 8px; }

.mv-call__cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border: 0; border-radius: 12px;
  font-family: inherit; font-size: .92rem; font-weight: 650; color: var(--mv-on-green);
  background: linear-gradient(145deg, var(--mv-green) 0%, var(--mv-green-dk) 100%);
  cursor: pointer; transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.mv-call__cta:hover  { transform: translateY(-2px); }
.mv-call__cta svg    { width: 18px; height: 18px; }

.mv-call__ghost {
  height: 40px; border: 1px solid var(--mv-line); border-radius: 12px;
  background: transparent; color: var(--mv-ink-dim);
  font-family: inherit; font-size: .85rem; cursor: pointer;
  transition: color .18s ease;
}
.mv-call__ghost:hover { color: var(--mv-ink); }

.mv-call__error {
  display: none; padding: 11px 13px; margin-bottom: 14px;
  border-left: 2px solid var(--mv-red);
  background: rgba(229, 72, 77, .09); border-radius: 0 6px 6px 0;
  font-size: .8rem; line-height: 1.55; color: var(--mv-ink-dim);
}
.mv-call.has-error .mv-call__error { display: block; }

/* ------------------------------------------------- PANTALLA DE LLAMADA --- */

.mv-call__screen { display: none; padding: 30px 20px 22px; text-align: center; }
.mv-call.is-live .mv-call__consent { display: none; }
.mv-call.is-live .mv-call__screen  { display: block; }

.mv-call__avatar-wrap {
  position: relative;
  width: 108px; height: 108px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
}

/* Anillos concéntricos: la señal universal de "llamando". */
.mv-call__ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(14, 165, 233, .5);
  opacity: 0;
  animation: mv-ring 2.6s cubic-bezier(.22, 1, .36, 1) infinite;
}
.mv-call__ring--b { animation-delay: .85s; }
.mv-call__ring--c { animation-delay: 1.7s; }
@keyframes mv-ring {
  0%   { transform: scale(.86); opacity: .75; }
  75%,
  100% { transform: scale(1.5); opacity: 0; }
}
/* Ya conectados, los anillos sobran: es una llamada en curso, no sonando. */
.mv-call.is-connected .mv-call__ring { animation: none; opacity: 0; }

/* --- Preloader de conexión ------------------------------------------------
   Anillo de carga girando alrededor del avatar mientras se establece la
   llamada. Sólo visible mientras NO hay conexión: en cuanto conecta,
   desaparece y entran los anillos de "sonando". */

.mv-call__loader {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: var(--mv-cyan);
  border-right-color: rgba(14, 165, 233, .35);
  opacity: 0;
  animation: mv-spin 1s linear infinite;
  pointer-events: none;
}
.mv-call.is-connecting .mv-call__loader { opacity: 1; }
@keyframes mv-spin { to { transform: rotate(360deg); } }

/* Señal baja: el anillo pasa a oro y frena. Comunica "va lento", no "falló". */
.mv-call.is-slow .mv-call__loader {
  border-top-color: var(--mv-gold);
  border-right-color: rgba(242, 201, 76, .35);
  animation-duration: 2.2s;
}
.mv-call.has-failed .mv-call__loader {
  border-top-color: var(--mv-red);
  border-right-color: rgba(229, 72, 77, .35);
  animation: none;
  opacity: 1;
}

/* Mientras conecta, el avatar respira: la llamada está viva aunque no suene. */
.mv-call.is-connecting .mv-call__avatar { animation: mv-breathe 2.4s ease-in-out infinite; }
@keyframes mv-breathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(.955); }
}

/* Barra de progreso de conexión: se llena por etapas reales, no por tiempo. */
.mv-call__progress {
  display: none;
  height: 3px; width: 148px; margin: 0 auto 14px;
  border-radius: 2px; overflow: hidden;
  background: rgba(14, 165, 233, .14);
}
.mv-call.is-connecting .mv-call__progress,
.mv-call.has-failed .mv-call__progress { display: block; }
.mv-call__progress i {
  display: block; height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--mv-blue), var(--mv-cyan));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}
.mv-call.is-slow  .mv-call__progress i { background: linear-gradient(90deg, #A8801F, var(--mv-gold)); }
.mv-call.has-failed .mv-call__progress i { background: var(--mv-red); }

/* Reintentar, cuando la conexión no llegó a establecerse. */
.mv-call__retry {
  display: none;
  margin: 0 auto 14px;
  height: 40px; padding: 0 20px;
  border: 1px solid var(--mv-line); border-radius: 12px;
  background: color-mix(in srgb, var(--mv-surface) 55%, transparent);
  color: var(--mv-ink); font-family: inherit; font-size: .86rem; font-weight: 600;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1);
}
.mv-call.has-failed .mv-call__retry { display: block; }
.mv-call__retry:hover { transform: translateY(-2px); }

/* ------------------------------------------------- FIN DE LLAMADA --- */
/* Existe porque antes no existia: una conversacion completa terminaba con el
   panel cerrandose de golpe, o pintada como error de conexion. Aqui es donde
   vive el puente a WhatsApp, que es donde de verdad se sigue la relacion. */
.mv-call__fin { display: none; padding: 2px 4px 4px; }
.mv-call.is-ended .mv-call__fin { display: block; }

/* Con la llamada terminada no hay nada que silenciar, ni nivel que medir, ni
   conexion que reintentar. Dejar esos controles seria ofrecer botones muertos. */
.mv-call.is-ended .mv-call__controls,
.mv-call.is-ended .mv-call__niveles,
.mv-call.is-ended .mv-call__retry,
.mv-call.is-ended .mv-call__hint { display: none; }
.mv-call.is-ended .mv-call__progress i { background: var(--mv-green); }

.mv-call__fin-txt {
  margin: 0 0 14px;
  color: var(--mv-ink-dim);
  font-size: .82rem; line-height: 1.45; text-align: center;
}

.mv-call__wa {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; margin-bottom: 10px;
  border-radius: 13px;
  background: var(--mv-wa);
  color: #04241A;                 /* sobre el verde de marca: 9,4:1 */
  font-family: inherit; font-size: .92rem; font-weight: 700;
  text-decoration: none;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), background .18s ease;
}
.mv-call__wa:hover  { background: var(--mv-wa-dk); transform: translateY(-2px); }
.mv-call__wa:active { transform: translateY(0); }
.mv-call__wa svg    { flex: none; }

.mv-call__fin-x {
  display: block; width: 100%; height: 38px;
  border: 1px solid var(--mv-line); border-radius: 12px;
  background: transparent;
  color: var(--mv-ink-dim);
  font-family: inherit; font-size: .84rem; font-weight: 600;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.mv-call__fin-x:hover { color: var(--mv-ink); border-color: var(--mv-cyan); }

@media (prefers-reduced-motion: reduce) {
  .mv-call__wa, .mv-call__fin-x { transition: none; }
  .mv-call__wa:hover { transform: none; }
}

/* ------------------------------------------------------------ LA FICHA --- */
/* La persona corrige aqui lo que la IA oyo. Superficie elevada por VALOR
   (--mv-surface) y filete de 1 px, sin sombra: sobre el fondo de Monova una
   sombra negra no se ve. El oro marca lo que escucho la IA, porque es justo lo
   que la persona tiene que mirar con atencion. */
.mv-call__ficha {
  margin: 4px 0 16px; padding: 14px;
  text-align: left;
  background: var(--mv-surface);
  border: 1px solid var(--mv-line);
  border-radius: 14px;
}
.mv-call__ficha[hidden] { display: none; }
.mv-call__ficha-tit { margin: 0 0 4px; font-size: .92rem; font-weight: 700; color: var(--mv-ink); }
.mv-call__ficha-ayuda { margin: 0 0 12px; font-size: .76rem; line-height: 1.5; color: var(--mv-ink-dim); }

.mv-call__campo { display: block; margin: 0 0 10px; }
.mv-call__et {
  display: block; margin: 0 0 4px;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em; color: var(--mv-ink-dim);
}
.mv-call__ia { display: none; font-style: normal; font-weight: 500; color: var(--mv-gold); }
.mv-call__campo.is-ia .mv-call__ia { display: inline; }

.mv-call__campo input,
.mv-call__campo textarea {
  display: block; width: 100%; box-sizing: border-box;
  padding: 9px 11px; margin: 0;
  font-family: inherit; font-size: 16px;   /* 16 px: por debajo, iOS hace zoom al enfocar */
  line-height: 1.35; color: var(--mv-ink);
  background: var(--mv-deep);
  border: 1px solid var(--mv-line); border-radius: 9px;
  outline: none;
}
.mv-call__campo textarea { resize: vertical; min-height: 84px; font-size: 14px; }
.mv-call__campo input:focus,
.mv-call__campo textarea:focus { border-color: var(--mv-cyan); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mv-cyan) 35%, transparent); }
.mv-call__campo.is-ia input,
.mv-call__campo.is-ia textarea { border-color: color-mix(in srgb, var(--mv-gold) 55%, transparent); }
.mv-call__campo.is-mal input,
.mv-call__campo.is-mal textarea { border-color: var(--mv-red); }

.mv-call__ficha-err { margin: 0 0 10px; font-size: .78rem; line-height: 1.45; color: var(--mv-red-lt); }
.mv-call__ficha-err:empty { display: none; }

.mv-call__enviar {
  display: block; width: 100%; height: 44px;
  border: 0; border-radius: 12px;
  font-family: inherit; font-size: .92rem; font-weight: 700; color: var(--mv-on-green);
  background: linear-gradient(145deg, var(--mv-green) 0%, var(--mv-green-dk) 100%);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), opacity .18s ease;
}
.mv-call__enviar:hover { transform: translateY(-2px); }
.mv-call__enviar:disabled { opacity: .6; cursor: progress; transform: none; }
.mv-call__enviar:focus-visible { outline: 2px solid var(--mv-cyan); outline-offset: 3px; }

.mv-call__ficha-ok {
  margin: 0 0 14px; padding: 11px 13px;
  border-left: 2px solid var(--mv-green);
  background: color-mix(in srgb, var(--mv-green) 8%, transparent);
  border-radius: 0 6px 6px 0;
  font-size: .82rem; line-height: 1.5; color: var(--mv-ink); text-align: left;
}
.mv-call__ficha-ok:empty { display: none; }

/* «Dejar mis datos»: solo en la pantalla de fin, y solo si no hay ficha ya. */
.mv-call__dejar {
  display: block; width: 100%; height: 42px; margin: 0 0 10px;
  border: 1px solid var(--mv-cyan); border-radius: 12px;
  background: transparent; color: var(--mv-ink);
  font-family: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.mv-call.has-ficha .mv-call__dejar,
.mv-call.ficha-enviada .mv-call__dejar { display: none; }

/* Con la ficha en pantalla el avatar se encoge: lo que importa ahora son los
   datos, y el panel tiene que caber en un movil. */
.mv-call.has-ficha .mv-call__screen { padding-top: 18px; }
.mv-call.has-ficha .mv-call__avatar-wrap { width: 64px; height: 64px; margin-bottom: 8px; }
.mv-call.has-ficha .mv-call__avatar { width: 56px; height: 56px; }
.mv-call.has-ficha .mv-call__avatar-letter { font-size: 1.6rem; }
.mv-call.has-ficha .mv-call__org,
.mv-call.has-ficha .mv-call__niveles { display: none; }
.mv-call.has-ficha .mv-call__state { margin-bottom: 8px; }

@media (prefers-reduced-motion: reduce) {
  .mv-call__enviar { transition: none; }
  .mv-call__enviar:hover { transform: none; }
}

/* Mientras conecta no hay nada que silenciar ni ningún altavoz que subir. */
.mv-call.is-connecting .mv-call__ctrl--mute,
.mv-call.is-connecting .mv-call__ctrl--speaker,
.mv-call.has-failed .mv-call__ctrl--mute,
.mv-call.has-failed .mv-call__ctrl--speaker { opacity: .35; pointer-events: none; }

.mv-call__avatar {
  position: relative;
  width: 92px; height: 92px;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  /* Gradiente firma de Monova. Aparece aquí y en el CTA principal: en ningún
     otro sitio de la página. */
  background: linear-gradient(100deg, var(--mv-blue), var(--mv-cyan));
  box-shadow:
    0 0 0 1px rgba(14, 165, 233, .35),
    0 0 34px rgba(14, 165, 233, .35),
    0 16px 36px -16px rgba(0, 0, 0, .9);
}
.mv-call__avatar img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* Sustituto tipográfico mientras no haya logo optimizado. Ver README. */
.mv-call__avatar-letter {
  font-size: 2.5rem; font-weight: 800; color: #fff;
  letter-spacing: -.04em; line-height: 1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

.mv-call__name  { margin: 0; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.mv-call__org   { margin: 2px 0 12px; font-size: .82rem; color: var(--mv-ink-dim); }

.mv-call__state {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: .92rem; font-variant-numeric: tabular-nums;
  color: var(--mv-ink-dim); min-height: 22px; margin-bottom: 14px;
}
.mv-call__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--mv-green);
  animation: mv-blink 1.6s ease-in-out infinite;
}
@keyframes mv-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* Barra de nivel: se mueve con la voz real del agente, no es decorativa. */
/* LOS DOS MEDIDORES. Antes habia uno solo, de 3 px de alto, y mostraba unicamente
   la voz de la agente: quien llamaba no podia ver si su microfono entraba. Ahora
   son dos, de 8 px, con etiqueta — porque un medidor que no se ve no informa de
   nada, y la pregunta que resuelve («¿me esta oyendo?») es justo la que deja a la
   gente hablandole a un silencio. */
.mv-call__niveles {
  display: flex; flex-direction: column; gap: 8px;
  width: 180px; margin: 0 auto 18px;
}
.mv-call__level,
.mv-call__nivel {
  position: relative;
  height: 8px; width: 100%;
  border-radius: 4px; overflow: hidden;
  background: rgba(14, 165, 233, .16);
}
.mv-call__level i,
.mv-call__nivel i {
  display: block; height: 100%; width: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--mv-green-dk), var(--mv-green-lt));
  transform: scaleX(0); transform-origin: left;
  transition: transform .09s linear;
}
/* El tuyo en amarillo, el de ella en verde: se distinguen de un vistazo sin
   tener que leer la etiqueta. El amarillo es --mv-gold, que en la paleta de
   Monova marca lo humano — aqui literalmente. */
.mv-call__nivel--tu i {
  background: linear-gradient(90deg, #8a7a10, var(--mv-gold));
}
.mv-call__nivel-et {
  position: absolute; left: 0; top: -14px;
  font-size: 10px; letter-spacing: .04em;
  color: var(--mv-ink-dim); pointer-events: none;
}
/* Hueco para las etiquetas, que van encima de cada barra. */
.mv-call__niveles { padding-top: 14px; }
.mv-call__niveles > * + * { margin-top: 6px; }

/* Aviso de volumen: aparece sólo si se infiere que no oye. */
.mv-call__hint {
  display: none;
  margin: 0 0 16px; padding: 10px 12px;
  border-left: 2px solid var(--mv-gold);
  background: rgba(242, 201, 76, .09);
  border-radius: 0 6px 6px 0;
  font-size: .78rem; line-height: 1.5; color: var(--mv-ink-dim);
  text-align: left;
}
.mv-call.needs-volume .mv-call__hint { display: block; }
.mv-call__hint b { color: var(--mv-gold); font-weight: 650; }

/* --------------------------------------------------------- CONTROLES --- */

.mv-call__controls {
  display: flex; align-items: center; justify-content: center; gap: 16px;
}

.mv-call__ctrl {
  position: relative;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--mv-line); border-radius: 50%;
  background: color-mix(in srgb, var(--mv-surface) 55%, transparent);
  color: var(--mv-ink); cursor: pointer;
  transition: transform .18s cubic-bezier(.22, 1, .36, 1), background .18s ease;
}
.mv-call__ctrl:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--mv-surface) 90%, transparent); }
.mv-call__ctrl:focus-visible { outline: 2px solid var(--mv-cyan); outline-offset: 3px; }
.mv-call__ctrl svg { width: 22px; height: 22px; }

/* Activo = altavoz encendido o micrófono silenciado */
.mv-call__ctrl[aria-pressed="true"] {
  background: var(--mv-cyan); color: #03121E; border-color: var(--mv-cyan);
}
.mv-call__ctrl--mute[aria-pressed="true"] {
  background: var(--mv-gold); color: #1A1300; border-color: var(--mv-gold);
}

.mv-call__ctrl--hangup {
  width: 60px; height: 60px;
  border: 0; color: #fff;
  background: linear-gradient(145deg, var(--mv-red-lt), var(--mv-red));
  box-shadow: 0 0 26px rgba(229, 72, 77, .38);
}
.mv-call__ctrl--hangup svg { width: 26px; height: 26px; transform: rotate(133deg); }
.mv-call__ctrl--hangup:hover { background: linear-gradient(145deg, var(--mv-red-lt), #B4262B); }

.mv-call__ctrl-label {
  position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mv-ink-dim); white-space: nowrap; pointer-events: none;
}

/* ------------------------------------------------------ ACCESIBILIDAD --- */

@media (prefers-reduced-motion: reduce) {
  .mv-call__pulse, .mv-call__ring, .mv-call__dot { animation: none; opacity: 0; }
  .mv-call__dot { opacity: 1; }
  .mv-call__btn, .mv-call__panel, .mv-call__label,
  .mv-call__cta, .mv-call__ctrl, .mv-call__level i { transition: none; }
  .mv-call__btn:hover, .mv-call__ctrl:hover { transform: none; }
}

@media (max-width: 480px) {
  .mv-call { --mv-size: 60px; --mv-edge: 16px; }
  .mv-call__label { display: none; }
  .mv-call__panel { width: calc(100vw - 32px); right: -4px; }
  .mv-call__avatar-wrap { width: 96px; height: 96px; }
  .mv-call__avatar { width: 82px; height: 82px; }
}

@media (prefers-color-scheme: light) {
  .mv-call:not([data-theme="dark"]) {
    --mv-deep: #FFFFFF;
    --mv-ink: #001A2B;        /* --fondo de tokens.css. Era #07182C, a 12,7 del #081c38 del cliente */
    --mv-ink-dim: #4A5F7A;
    --mv-line: rgba(0, 26, 43, .12);
    --mv-surface: #F3F6F8;
  }
}

/* --- Cloudflare Turnstile -------------------------------------------------
   En modo interaction-only el widget no ocupa nada mientras no haga falta.
   Sin :empty el contenedor dejaría un hueco permanente bajo el aviso. */
.mv-call__turnstile { margin: 0 0 12px; }
.mv-call__turnstile:empty { display: none; margin: 0; }
.mv-call__turnstile iframe { max-width: 100%; }
