/* Elementos dinámicos y utilitarios */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #12d66a, #0aa84f);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  box-shadow: 0 18px 38px rgba(18, 214, 106, 0.32);
  z-index: 60;
  animation: floatPulse 2.2s ease-in-out infinite;
}

@keyframes floatPulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.whatsapp-float:hover {
  transform: scale(1.06);
}

.site-header.scrolled {
  box-shadow: 0 10px 30px rgba(10, 41, 99, 0.08);
}

.hero::after {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  right: -120px;
  top: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 70%);
  pointer-events: none;
}

.service-card::after,
.testimonial-card::after,
.form-panel::after,
.contact-panel::after {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #1f7bff, #85c3ff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card,
.testimonial-card,
.form-panel,
.contact-panel {
  position: relative;
}

.service-card:hover::after,
.testimonial-card.active::after,
.form-panel:hover::after,
.contact-panel:hover::after {
  opacity: 1;
}

.brand,
.nav a,
.btn,
.footer-social a,
.testimonial-controls button,
.whatsapp-float {
  transition: all 0.28s ease;
}

.brand:hover {
  transform: translateY(-2px);
}

.nav a:hover {
  color: #0f56c4;
}

.form-message.success {
  color: #0a8f4f;
  font-weight: 700;
}

.form-message.error {
  color: #c62828;
  font-weight: 700;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #eff5ff;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #1f7bff, #0a3d91);
  border-radius: 999px;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 1.7rem;
    right: 14px;
    bottom: 14px;
  }

  .hero::after {
    width: 280px;
    height: 280px;
    right: -80px;
  }
}
