/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

a {
  text-decoration: none;
  color: inherit;
}

.btn {
  display: inline-block;
  background: #e22908;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: black;
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  width: 100%;
  max-width: 100px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin: 0 15px;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e22908;
}

.nav-icons {
  display: flex;
  align-items: center;
}

.nav-icons a {
  margin-left: 20px;
  font-size: 1.2rem;
  color: #333;
  transition: color 0.3s;
}

.nav-icons a:hover {
  color: #0066cc;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 20px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #333;
  margin: 3px 0;
  transition: all 0.3s;
}

/* Hero Section */
.hero {
  height: 80vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 5%;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Nueva Sección: Featured Products */
.featured-products {
  padding: 5rem 5%;
  background-color: #f0f8ff;
  text-align: center;
}

.featured-products h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #e22908;
}

.featured-products .subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  position: relative;
}

.featured-card:hover {
  transform: translateY(-10px);
}

.featured-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  padding: 2em;
}

.badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff5722;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.8rem;
  z-index: 1;
}

.featured-info {
  padding: 20px;
  text-align: left;
}

.featured-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.rating {
  color: #ffc107;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.rating span {
  color: #666;
  font-size: 0.9rem;
  margin-left: 10px;
}

.price-container {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.price {
  font-weight: bold;
  font-size: 1.5rem;
  color: #e22908;
  margin-right: 15px;
}

.old-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.featured-btn {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  background: #0066cc;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  transition: all 0.3s;
}

.featured-btn:hover {
  background: #0052a3;
}


/* Products Section */
.products {
  padding: 5rem 5%;
  text-align: center;
}

.products h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #333;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;
  align-content: center;
  gap: 2rem;
}

.product-card {
  width: 100%;
  min-width: 400px;
  max-width: 800px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  padding: 2em;
}

.product-card h3 {
  margin: 15px 0;
  font-size: 1.4rem;
}

.product-card .specs {
  color: #666;
  font-size: 0.9rem;
  padding: 0 15px;
  margin-bottom: 15px;
}

.product-card .price {
  font-weight: bold;
  font-size: 1.3rem;
  color: #e22908;
  margin-bottom: 15px;
}

.product-card .btn {
  margin-bottom: 20px;
  padding: 8px 15px;
  font-size: 0.9rem;
}

.search-filter-container {
  max-width: 1200px;
  margin: 0 auto 30px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-box {
  display: flex;
  margin-bottom: 20px;
}

.search-box input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  font-size: 1rem;
}

.search-box button {
  padding: 0 20px;
  background: #e22908;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.search-box button:hover {
  background: black;
}

.filter-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.filter-group {
  margin-bottom: 15px;
}

.filter-group h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #333;
}

.filter-options {
  display: flex;
  flex-direction: column;
}

.filter-options label {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-options input {
  margin-right: 8px;
  cursor: pointer;
}

#reset-filters {
  margin-top: 10px;
  padding: 8px 15px;
  background: #f0f0f0;
  color: #333;
  align-self: end;
}

#reset-filters:hover {
  background: #e0e0e0;
}

/* Estilo para productos filtrados */
.product-card.filtered {
  display: none;
}

/* Offers Section */
.offers {
  padding: 0 5% 5rem;
  text-align: center;
}

.offers h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #333;
}

.offer-banner {
  background: linear-gradient(135deg, #e22908, black);
  color: #fff;
  border-radius: 10px;
  padding: 3rem;
  text-align: center;
}

.offer-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.offer-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: #222;
  color: #fff;
  padding: 3rem 5% 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e22908;
}

.footer-section.about p {
  margin-bottom: 1.5rem;
}

.socials a {
  display: inline-block;
  margin-right: 15px;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.socials a:hover {
  color: #e22908;
}

.footer-section.links ul {
  list-style: none;
}

.footer-section.links li {
  margin-bottom: 10px;
}

.footer-section.links a {
  transition: color 0.3s;
}

.footer-section.links a:hover {
  color: #e22908;
}

.footer-section.contact p {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.footer-section.contact i {
  margin-right: 10px;
  color: #e22908;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #444;
  font-size: 0.9rem;
}

/* Responsive Design */

@media (max-width: 576px) {
  .hero {
    height: 70vh;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .offer-banner {
    padding: 2rem 1rem;
  }

  .offer-content h3 {
    font-size: 1.5rem;
  }

  .offer-content p {
    font-size: 1rem;
  }

  .featured-products h2 {
    font-size: 2rem;
  }

  .featured-products .subtitle {
    font-size: 1rem;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }

  .filter-section {
    grid-template-columns: 1fr;
  }

  .featured-card img {
    height: 200px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: #fff;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: left 0.3s;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .products h2,
  .offers h2 {
    font-size: 2rem;
  }
}


@media (max-width: 992px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
}