/* ══════════ WHATSAPP (componente compartido MT) ══════════
   Dos piezas, una identidad:
   1. .wa-dock  = pieza flotante abajo-IZQUIERDA (la derecha es del chatbot:
                  #bgc-launcher vive en bottom/right 24px con z 117-119, y su
                  teaser en bottom 100px; por eso este dock nunca va a la
                  derecha ni sube de z 115).
   2. .wa-line  = tarjeta "línea directa" dentro del contenido (home).
   Autónomo: no depende de variables del host, así se ve igual sobre la home
   clara, las landings de producto y los sectores. El markup del dock lo monta
   /whatsapp.js; el número y el mensaje viven ahí (o en window.BG_WA).
   Referencia de gusto: dock tipo Linear (cristal tinta, etiqueta que se
   despliega), no el círculo verde de plantilla. */

.wa-dock {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 115;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

/* ── El orbe ─────────────────────────────────────────────── */
.wa-dock__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(158deg, #202741 0%, #0B1220 72%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .11),
    inset 0 1px 0 rgba(255, 255, 255, .16),
    0 18px 38px -14px rgba(11, 18, 32, .62);
  transition: transform .22s cubic-bezier(.23, 1, .32, 1), box-shadow .22s cubic-bezier(.23, 1, .32, 1);
  will-change: transform;
}
.wa-dock__glyph {
  width: 26px;
  height: 26px;
  fill: #F6F4F9;
}

/* Punto de presencia: el único verde de la pieza, y respira */
.wa-dock__dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 2.5px #0B1220;
}
.wa-dock__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(37, 211, 102, .75);
  animation: waBreath 2.8s cubic-bezier(.23, 1, .32, 1) infinite;
}
@keyframes waBreath {
  0%   { transform: scale(1);   opacity: .85; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* ── La etiqueta que se despliega ─────────────────────────── */
.wa-dock__label {
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: -.005em;
  line-height: 1;
  white-space: nowrap;
  color: #F6F4F9;
  background: #241F33;
  padding: .72em 1.05em;
  border-radius: 999px;
  box-shadow: 0 14px 30px -14px rgba(11, 18, 32, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
  opacity: 0;
  transform: translateX(-14px);
  pointer-events: none;
  transition: opacity .24s cubic-bezier(.23, 1, .32, 1), transform .24s cubic-bezier(.23, 1, .32, 1);
}
.wa-dock:hover .wa-dock__orb,
.wa-dock:focus-visible .wa-dock__orb {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 26px 50px -16px rgba(11, 18, 32, .7);
}
.wa-dock:hover .wa-dock__label,
.wa-dock:focus-visible .wa-dock__label,
.wa-dock[data-wa-reveal] .wa-dock__label {
  opacity: 1;
  transform: translateX(0);
}
.wa-dock:focus-visible { outline: none; }
.wa-dock:focus-visible .wa-dock__orb { box-shadow: 0 0 0 3px rgba(109, 40, 217, .9), 0 26px 50px -16px rgba(11, 18, 32, .7); }
.wa-dock:active .wa-dock__orb { transform: scale(.96); }

@media (max-width: 560px) {
  .wa-dock { bottom: 16px; left: 16px; gap: 10px; }
  .wa-dock__orb { width: 52px; height: 52px; }
  .wa-dock__glyph { width: 24px; height: 24px; }
  .wa-dock__label { font-size: .8rem; max-width: calc(100vw - 140px); overflow: hidden; text-overflow: ellipsis; }
}

@media (prefers-reduced-motion: reduce) {
  .wa-dock__dot::after { animation: none; }
  .wa-dock__orb, .wa-dock__label { transition: none; }
}
@media print { .wa-dock { display: none; } }

/* ── Línea directa (dentro del contenido) ─────────────────── */
.wa-line {
  position: relative;
  display: block;
  margin-top: 2rem;
  padding-top: 1.4rem;
  text-decoration: none;
  color: inherit;
}
.wa-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent 62%);
  opacity: .26;
}
.wa-line__kicker {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .62;
}
.wa-line__kicker svg { width: 14px; height: 14px; fill: currentColor; }
.wa-line__num {
  display: block;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.15rem);
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: .5rem 0 .35rem;
  transition: transform .2s cubic-bezier(.23, 1, .32, 1);
}
.wa-line:hover .wa-line__num { transform: translateX(6px); }
.wa-line__num::after {
  content: '';
  display: inline-block;
  width: .34em;
  height: .34em;
  border-radius: 50%;
  background: #25D366;
  margin-left: .4em;
  vertical-align: .28em;
}
.wa-line__note {
  font-size: .97rem;
  line-height: 1.5;
  opacity: .78;
  max-width: 46ch;
  text-wrap: pretty;
}
@media (prefers-reduced-motion: reduce) {
  .wa-line__num { transition: none; }
}
