/* CSS Fixes for layout issues */

/* Reduced padding between hero and about-intro section */
.about-intro {
  padding-top: 40px !important;
  margin-top: 20px !important;
}

.about-intro .section-title {
  margin-top: 20px !important;
  color: #2d3c2d !important; /* Dark green */
}

.about-intro .section-description {
  color: #2d3c2d !important; /* Dark green */
}

/* Fix for features-cards section */
.features-cards {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 30px !important;
  width: 100% !important;
  margin-top: 50px !important;
  margin-bottom: 50px !important;
}

.feature-card {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  padding: 40px 30px !important;
  background-color: white !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05) !important;
  border-radius: 4px !important;
}

.feature-icon {
  font-size: 3.5rem !important;
  color: #4a6741 !important; /* Green color to match the image */
  margin-bottom: 20px !important;
}

.feature-card h3 {
  font-size: 2rem !important;
  margin-bottom: 15px !important;
  color: #333 !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 500 !important;
}

.feature-card p {
  margin-bottom: 25px !important;
  color: #666 !important;
  font-size: 1.5rem !important;
  line-height: 1.6 !important;
}

.feature-card .btn-secondary {
  padding: 10px 25px !important;
  border: 1px solid #4a6741 !important;
  background-color: #4a6741 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  font-size: 1.2rem !important;
  letter-spacing: 1px !important;
  transition: all 0.3s ease !important;
}

.feature-card .btn-secondary:hover {
  background-color: #4a6741 !important;
  color: white !important;
}

/* Fix for featured products section */
.featured-section, .featured-products {
  margin-top: 80px !important;
  margin-bottom: 60px !important;
}

.featured-products .section-title {
  margin-top: 30px !important;
  padding-top: 20px !important;
}

.featured-section h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 2.8rem !important;
  font-weight: 500 !important;
  margin-bottom: 15px !important;
  color: #333 !important;
  position: relative !important;
}

.featured-section h2::after {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -10px !important;
  width: 80px !important;
  height: 2px !important;
  background-color: #4a6741 !important;
}

.featured-section .section-description {
  max-width: 700px !important;
  margin: 0 auto 40px !important;
  text-align: center !important;
  font-size: 1.6rem !important;
  line-height: 1.6 !important;
  color: #666 !important;
}

.featured-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 30px !important;
  width: 100% !important;
  margin-top: 40px !important;
}

.featured-card {
  width: 100% !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  background-color: white !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.featured-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.featured-image {
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  background-color: #f9f9f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transition: transform 0.5s ease !important;
}

.featured-card:hover .featured-image img {
  transform: scale(1.05) !important;
}

.featured-card h4 {
  padding: 20px 20px 5px !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.8rem !important;
  font-weight: 600 !important;
  color: #333 !important;
  margin: 0 !important;
  text-transform: uppercase !important;
}

.featured-card p {
  padding: 0 20px 20px !important;
  font-size: 1.4rem !important;
  color: #666 !important;
  margin: 0 !important;
  font-style: italic !important;
}

/* Add padding below Ver Catálogo Completo button */
.view-more {
  margin-top: 40px !important;
  margin-bottom: 60px !important;
  padding-bottom: 20px !important;
}

/* Make Calidad Garantizada text white */
.parallax-section h2,
.parallax-section p {
  color: white !important;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5) !important;
}

/* Responsive fixes */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .features-cards {
    flex-direction: column !important;
  }
  
  .feature-card {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
}

@media (max-width: 576px) {
  .featured-grid {
    grid-template-columns: 1fr !important;
  }
}
