/* =========================
   FLOATING BROCHURE BUTTON
   Mendieta Estudio Contable
   ========================= */

.floatBrochure {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 9999;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 15px 20px;
  border-radius: 999px;

  background: linear-gradient(135deg, #a0c8aa, #a0c8aa);
  color: #063c35;
  text-decoration: none;

  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;

  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.28);

  animation: brochurePulse 2.8s ease-in-out infinite;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

/* Hover → se detiene la animación */
.floatBrochure:hover {
  animation-play-state: paused;
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35);
}

/* Icon */
.floatBrochure__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  background: rgba(0, 0, 0, 0.85);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);

  font-size: 18px;
}

/* Text */
.floatBrochure__text {
  white-space: nowrap;
}

/* =========================
   PULSE ANIMATION
   ========================= */

@keyframes brochurePulse {
  0% {
    box-shadow:
      0 14px 35px rgba(0, 0, 0, 0.28),
      0 0 0 0 rgba(12, 67, 61, 0.45);
  }

  50% {
    box-shadow:
      0 18px 45px rgba(0, 0, 0, 0.35),
      0 0 0 12px rgba(12, 67, 61, 0);
  }

  100% {
    box-shadow:
      0 14px 35px rgba(0, 0, 0, 0.28),
      0 0 0 0 rgba(12, 67, 61, 0);
  }
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 720px) {
  .floatBrochure {
    padding: 15px;
    gap: 0;
  }

  .floatBrochure__text {
    display: none;
  }
}

/* =========================
   SAFE AREA IPHONE
   ========================= */

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .floatBrochure {
    bottom: calc(22px + env(safe-area-inset-bottom));
  }
}
