/* Animaciones y estilos modernos para la home de Nutrimed */

.hero-animate {
  animation: heroFadeIn 1.2s cubic-bezier(.4,0,.2,1) both;
}
@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: none; }
}

.cta-pulse {
  animation: ctaPulse 1.5s infinite alternate;
}
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(13,110,253,0.3); }
  100% { box-shadow: 0 0 0 16px rgba(13,110,253,0); }
}

.card-animate {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.7s cubic-bezier(.4,0,.2,1);
}
.card-animate.visible {
  opacity: 1;
  transform: none;
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}
.carousel-fade .carousel-item.active {
  opacity: 1;
  z-index: 2;
}

/* Overlay para carousel */
.carousel-caption {
  background: rgba(0,0,0,0.45);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  backdrop-filter: blur(2px);
}

/* Sección about asimétrica */
@media (min-width: 992px) {
  .about-section .row {
    flex-direction: row-reverse;
  }
}

/* Botón CTA animado */
.cta-section .btn-lg {
  font-size: 1.3rem;
  padding: 0.9rem 2.5rem;
  border-radius: 2rem;
}

/* Tarjetas de servicios */
.services-section .card {
  border: none;
  border-radius: 1.5rem;
  box-shadow: 0 4px 32px 0 rgba(13,110,253,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.services-section .card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 40px 0 rgba(13,110,253,0.18);
}

/* General */
section {
  scroll-margin-top: 80px;
}
