/* ==========================================================================
   Solocars · Widgets flotantes (WhatsApp + volver arriba)
   Autocontenido. No depende de FontAwesome ni de estilos de Mobirise.
   Verde WhatsApp oficial: #25D366 · Azul marca Solocars: #00447e
   ========================================================================== */

.sc-fab-wa,
.sc-fab-top {
  position: fixed;
  right: 22px;
  z-index: 9999;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Botón WhatsApp (rectángulo redondeado con marca, NO redondo) ---------- */
.sc-fab-wa {
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #25D366;
  color: #fff;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}
.sc-fab-wa:hover,
.sc-fab-wa:focus-visible {
  background: #1ebe5d;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  outline: none;
}
.sc-fab-wa svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: block;
}
.sc-fab-wa .sc-wa-txt { white-space: nowrap; }

/* Halo sutil para llamar la atención sin resultar intrusivo */
.sc-fab-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45);
  animation: sc-wa-pulse 2.6s infinite;
  pointer-events: none;
}
@keyframes sc-wa-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Flecha volver arriba (azul marca, aparece al bajar) ---------- */
.sc-fab-top {
  bottom: 88px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #00447e;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background-color .22s ease;
}
.sc-fab-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sc-fab-top:hover,
.sc-fab-top:focus-visible {
  background: #005ba6;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.26);
  outline: none;
}
.sc-fab-top svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 575px) {
  .sc-fab-wa { padding: 12px; }        /* solo icono en móvil, sigue sin ser redondo */
  .sc-fab-wa .sc-wa-txt { display: none; }
  .sc-fab-top { bottom: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .sc-fab-wa,
  .sc-fab-top { transition: none; }
  .sc-fab-wa::before { animation: none; }
}
