/* ===== Animaciones ===== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-fade-in-up {
  animation: fade-in-up 0.7s ease-out forwards;
  opacity: 0;
}

.animation-delay-100 { animation-delay: 0.1s; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-300 { animation-delay: 0.3s; }

/* ===== WhatsApp Float Animation ===== */
#whatsappFloat {
  animation: float 3s ease-in-out infinite;
}

#whatsappFloat:hover {
  animation: none;
}

/* ===== Toast ===== */
.toast-success {
  border-color: #25D366;
  background-color: #f0fdf4;
}

.toast-error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* ===== Scroll reveal ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header scroll shadow ===== */
#header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ===== Smooth scroll ===== */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ===== Focus ring ===== */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(48, 79, 129, 0.15);
}

/* ===== Mobile menu transition ===== */
#mobileMenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobileMenu.open {
  max-height: 400px;
}

/* ===== Image loading placeholder ===== */
img {
  background-color: #e2e8f0;
}

/* ===== Service card image hover ===== */
.group:hover img {
  filter: brightness(1.05);
}

/* ===== Stats section background pattern ===== */
section:first-of-type .absolute {
  pointer-events: none;
}

/* ===== Responsive image grid in historia ===== */
@media (max-width: 1024px) {
  .grid-cols-2.gap-4.mt-8 {
    margin-top: 0;
  }
}

/* ===== Selection color ===== */
::selection {
  background-color: #25D366;
  color: white;
}

/* ===== Scrollbar styling ===== */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
