.book-card .book-image {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.book-card:hover .book-image,
.book-card:focus-within .book-image {
  transform: scale(1.06);
  background-color: #ecf5c9;
}

.product-card .product-image {
  transition: transform 0.3s ease, filter 0.3s ease;
}

.product-card:hover .product-image,
.product-card:focus-within .product-image {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background-color: #f9f9f9;
}

.barra-animada {
  height: 4px;
  width: 100%;
  background: linear-gradient(to right, #283618, #b3be7e, #283618);
  background-size: 200% auto;
  animation: moverColor 4s linear infinite;
}

@keyframes moverColor {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-image img {
  border: 4px solid transparent;
  animation: bordeHero 5s linear infinite;
}

@keyframes bordeHero {
  0% { border-color: #b3be7e; }
  50% { border-color: #283618; }
  100% { border-color: #b3be7e; }
}

.cta-button {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button.pulse {
  animation: pulse 1.5s infinite;
}

.cta-button:hover {
  animation: pulseHover 0.6s ease-in-out;
  transform: scale(1.05);
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 54, 24, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 54, 24, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 54, 24, 0); }
}

@keyframes pulseHover {
  0% { transform: scale(1.05); box-shadow: 0 0 0 0 rgba(40, 54, 24, 0.7); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(40, 54, 24, 0.3); }
  100% { transform: scale(1.05); box-shadow: 0 0 0 0 rgba(40, 54, 24, 0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.social-icon {
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
  transform: rotate(10deg) scale(1.1);
  background-color: rgba(40, 54, 24, 0.8);
}

.testimonial-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  animation: bounceHover 0.6s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

@keyframes bounceHover {
  0% { transform: translateY(0) scale(1); }
  30% { transform: translateY(-8px) scale(1.02); }
  60% { transform: translateY(-3px) scale(1.01); }
  100% { transform: translateY(-5px) scale(1.01); }
}

.logo-icon {
  animation: logoEntrance 2s ease;
  transition: transform 0.4s ease;
}

@keyframes logoEntrance {
  0% { transform: translateY(-20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.logo-icon:hover {
  transform: scale(1.1) rotate(2deg);
}

.favorite-btn {
  transition: all 0.3s ease;
}

.favorite-btn:hover {
  transform: scale(1.2) rotate(10deg);
  background-color: #ffe0e0;
  color: #ff4d4d;
}

.buy-now {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.buy-now::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.buy-now:hover::before {
  left: 100%;
}

.buy-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.product-badge {
  transition: all 0.3s ease;
}

.product-card:hover .product-badge {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.product-price {
  transition: all 0.3s ease;
}

.product-card:hover .product-price {
  color: #1c3f2f;
  transform: scale(1.05);
  font-weight: 700;
}

.gallery-item {
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.gallery-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: all 0.6s;
  opacity: 0;
}

.gallery-item:hover::before {
  animation: shine 0.8s ease-in-out;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.hero-content {
  transition: transform 0.3s ease;
}

.hero:hover .hero-content {
  transform: translateY(-5px);
}


.fade-in-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-link {
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .product-card:hover {
    background-color: #2a2a2a;
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.1);
  }
  
  .gallery-item:hover {
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
  }
  
  .buy-now:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
  }
}