@keyframes grow {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes leafFall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg);
  }
}

/* RZ-INT-001: Product Card Hover */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 15px var(--sombra-hover);
}

.product-card:hover .product-card__image {
  transform: scale(1.05);
  transition: transform 0.5s ease;
}

/* RZ-INT-002: Organic Navigation Underline */
.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--verde-musgo);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

/* RZ-INT-003: Homepage Plant Entrance */
.plant-entrance {
  display: inline-block;
  opacity: 0;
  animation: plantGrow 500ms ease-out forwards;
  animation-delay: 200ms;
}

@keyframes plantGrow {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* RZ-INT-004: Organic Page Title Growth */
.title-with-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.title-with-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--verde-musgo);
  transition: width 0.5s ease;
}

.title-with-underline.animate::after {
  width: 100%;
}

/* RZ-INT-011: Product Image Reveal */
.image-reveal {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 400ms ease, transform 400ms ease;
}

.image-reveal.loaded {
  opacity: 1;
  transform: scale(1);
}

/* RZ-INT-012: Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--texto-secundario);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state p {
  margin-bottom: 1rem;
  opacity: 0.7;
}

.empty-state a {
  color: var(--verde-musgo);
  font-weight: 600;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .plant-entrance {
    animation: none;
    opacity: 1;
  }

  .title-with-underline::after,
  .image-reveal,
  .nav__link::after {
    transition: none;
    animation: none;
  }

  .title-with-underline.animate::after {
    width: 100%;
  }

  .image-reveal {
    opacity: 1;
    transform: none;
  }

  .product-card:hover {
    transform: none;
  }
}