.featured-categories {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.featured-categories h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 36px;
  color: var(--text-dark);
  font-weight: 700;
}

.category-card {
    width: 100%;
  background-color: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #00a838);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.category-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.08);
  transform: translateY(-4px);
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--text-dark);
  font-weight: 700;
}

.category-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 24px;
  line-height: 1.6;
}

.btn-ver-oferta {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-light);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-ver-oferta:hover {
  background-color: var(--primary-dark);
}

.row {
  display: flex;            /* Activa el modo horizontal */
  flex-wrap: wrap;          /* Permite que se bajen a la siguiente lÃnea en pann
tallas pequeÃ±as */                                                               justify-content: center;  /* Las centra si sobran espacios */
  gap: 20px;                /* Crea una separaciÃ³n uniforme entre tarjetas */  
  width: 100%;
  max-width: 1200px;        /* O el ancho de tu contenedor */
  margin: 0 auto;           /* Centra el bloque entero */
}

.col-33 {
  flex: 1;                  /* Hace que todas las columnas midan lo mismo */    
  min-width: 300px;         /* Evita que se aplasten demasiado en pantallas chic*/
  display: flex;            /* Asegura que el contenido interno se comporte bien*/
}

/* Sección Catálogo de Productos */
.catalogo {
  padding: 60px 40px;
  background-color: var(--bg-light);
}

.catalogo .section-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--text-dark);
  text-align: center;
  font-weight: 700;
}

/* Filtro de Categorías */
.category-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 24px;
  border: 2px solid var(--border);
  background-color: #fff;
  border-radius: 30px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.filter-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* Grid de Productos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Tarjeta de Producto */
.product-card {
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.product-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f5f5f5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 12px;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.product-badge.oferta {
  background-color: #e74c3c;
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-weight: 600;
}

.product-description {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-price {
  margin-bottom: 15px;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-old {
  font-size: 14px;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 8px;
}

.btn-agregar {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-agregar:hover {
  background-color: var(--primary-dark);
}

/* ========== RESPONSIVE TIENDA COMPLETO ========== */

@media (max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalogo {
    padding: 50px 30px;
  }

  .catalogo .section-title {
    font-size: 30px;
  }
}

@media (max-width: 1024px) {
  .featured-categories {
    padding: 50px 0;
  }

  .row {
    gap: 15px;
  }

  .col-33 {
    min-width: 280px;
  }
}

@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .catalogo {
    padding: 40px 20px;
  }

  .catalogo .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .category-filter {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .featured-categories {
    padding: 40px 0;
  }

  .row {
    flex-direction: column;
    gap: 15px;
  }

  .col-33 {
    min-width: 100%;
  }

  .category-card {
    padding: 30px 20px;
  }

  .category-card h3 {
    font-size: 18px;
  }

  .category-card p {
    font-size: 13px;
    margin-bottom: 18px;
  }

  .catalogo {
    padding: 30px 15px;
  }

  .catalogo .section-title {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .category-filter {
    gap: 8px;
    margin-bottom: 25px;
  }

  .filter-btn {
    padding: 10px 16px;
    font-size: 12px;
  }

  .products-grid {
    gap: 15px;
  }

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 15px;
  }

  .product-info h3 {
    font-size: 14px;
    margin-bottom: 5px;
  }

  .product-description {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .price {
    font-size: 18px;
  }

  .price-old {
    font-size: 12px;
  }

  .btn-agregar {
    padding: 10px;
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .category-filter {
    gap: 6px;
  }
  
  .filter-btn {
    padding: 8px 14px;
    font-size: 11px;
    border-radius: 20px;
  }

  .product-card {
    display: flex;
    flex-direction: row;
  }

  .product-image {
    width: 120px;
    min-width: 120px;
    height: 120px;
  }

  .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
  }

  .product-badge {
    top: 5px;
    left: 5px;
    padding: 3px 8px;
    font-size: 10px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-description {
    font-size: 11px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-price {
    margin-bottom: 10px;
  }

  .price {
    font-size: 16px;
  }

  .btn-agregar {
    padding: 8px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .catalogo {
    padding: 25px 10px;
  }

  .catalogo .section-title {
    font-size: 20px;
  }

  .category-filter {
    gap: 5px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 10px;
  }

  .product-image {
    width: 100px;
    min-width: 100px;
    height: 100px;
  }

  .product-info {
    padding: 10px;
  }

  .product-info h3 {
    font-size: 12px;
  }

  .product-description {
    font-size: 10px;
  }

  .price {
    font-size: 14px;
  }

  .price-old {
    font-size: 10px;
  }

  .btn-agregar {
    padding: 6px;
    font-size: 11px;
  }
}