/* style.css */

body {
  font-family: 'Arial', sans-serif;
  background-color: #f7f9fb;
  color: #333;
}

header {
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  transition: box-shadow 0.3s ease;
  position: relative;
  /* Increased height */
  height: 80px;
  /* Ensure flexbox is used to center items vertically */
  display: flex;
  align-items: center;
}

header:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Hero Section */
.hero-section {
  background-color: #f9f9f9;
  padding: 50px 0;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #666;
}

/* Featured Products */
.featured-products {
  padding: 40px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  flex-grow: 1;
}

.product-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.product-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

.product-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
}

.ver-detalles-button {
  margin-top: auto;
  align-self: flex-end;
}

/* About Us Section */
.about-us {
  background-color: #f7f9fb;
  padding: 50px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.about-image {
  width: 100%;
  border-radius: 8px;
}

.about-title {
  font-size: 2rem;
  color: #333;
  margin-bottom: 1rem;
}

.about-description {
  font-size: 1rem;
  color: #666;
}

/* Testimonials Section */
.testimonials {
  padding: 40px 0;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  transition: background-color 0.3s ease;
}

.testimonial-card:hover {
  background-color: #f9f9f9;
}

.testimonial-text {
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: bold;
  color: #333;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.3s ease;
}

footer a:hover {
  text-decoration: underline;
  color: #ddd;
}

/* Mobile Menu */
#mobile-menu {
  position: absolute;
  top: 68px;
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

#mobile-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

#mobile-menu a:hover {
  background-color: #f9f9f9;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20;
  overflow: auto; 
}

.modal-content {
  position: relative;
  background-color: #fff;
  margin: 5% auto; 
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 80%;
  max-width: 600px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

/* Featured Carousel Styles */
.featured-carousel-section {
  width: 100%;
  overflow: hidden;
  margin-bottom: 20px;
}

.featured-carousel {
  width: 100%;
}

.carousel-item {
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 2px 2px 4px #000000;
}

.carousel-caption h3 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.carousel-caption p {
  font-size: 1.2rem;
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(50px);
    opacity: 0;
  }

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

@keyframes scaleUp {
  from {
    transform: scale(0.9);
  }

  to {
    transform: scale(1);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out;
}

.animate-slide-in {
  animation: slideIn 1s ease-out;
}

.animate-scale-up {
  animation: scaleUp 0.5s ease-out;
}