/* Estilos para la sección hero y búsqueda */
.hero-section {
  background-image: url("../img/background-hero.png"), url("../img/rectangulopng.png");
  background-size: cover, cover;
  background-position: bottom center, bottom center;
  background-repeat: no-repeat, no-repeat;
  background-blend-mode: overlay;
  padding: 10px 20px;
  text-align: center;
  position: relative;
  min-height: 400px ;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
  .png{
    background-image: url("../img/rectangulopng.png");
    background-size: cover;
    background-position: bottom;
    
  }

  .search-container,
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .search-box {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    border: 2px solid #f47b20;
    border-radius: 30px;
    overflow: hidden;
    
  }
  
  .search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    border-radius: 30px 0 0 30px;
  }
  
  .search-button {
    background-color: white;
    border: none;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
  }
  
  .hero-content {
    margin-bottom: 30px;
  }
  
  .hero-content h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
  }
  
  .hero-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
  }
  
  .btn-medidas {
    display: inline-block;
    background-color: #f47b20;
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
  }

  .btn-modal{
    display: flex;
  justify-content: center;
  align-items: center;
  height: 20vh;
  }

  .modal{
    display:none; 
    position:fixed; 
    top:0; 
    left:0; 
    width:100%; 
    height:100%; 
    background-color: rgba(0,0,0,0.5);
  }

  #imageModal {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      justify-content: center;
      align-items: center;
    }

  #imageModal img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 10px #000;
  }
  
  .btn-medidas:hover {
    background-color: #e06a10;
  }
  
  /* Estilos para la sección de productos */
  .products-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-title {
    text-align: center;
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    position: relative;
  }

  .label{
    justify-content: center;
    text-align: center;
    background-color: grey;
    color: white;
    padding: 2rem 4rem;
    margin: 1rem;
  }
  
  .section-title::after {
    content: "";
    display: block;
    width: 100px;
    height: 2px;
    background-color: #ddd;
    margin: 15px auto 30px;
  }
  
  .filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
  }
  
  .filter-dropdown {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
  }
  
  .filter-dropdown span {
    margin-right: 10px;
    color: #666;
  }
  
  .filter-dropdown select {
    border: none;
    background: transparent;
    color: #333;
    outline: none;
    cursor: pointer;
  }
  
  /* Grid de productos responsivo */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  
  .product-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    position: relative;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .product-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
  }

  .product-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.3s;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.05);
  }
  
  .product-info {
    padding: 15px;
    transition: opacity 0.3s;
    color: #666;
  }
  
  .product-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .product-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    height: 40px;
    opacity: 0;
  }
  
  .product-price {
    font-size: 18px;
    font-weight: 600;
    color: #f47b20;
    margin-bottom: 15px;
    opacity: 0;
  }
  
  .btn-add-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    /*transition: background-color 0.3s;*/
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .btn-add-cart:hover {
    background-color: #e06a10;
  }

.product-card:hover .btn-add-cart,
.product-card:hover .product-price, 
.product-card:hover .product-description {
  opacity: 1;
}

.img-container{
    width: 80%;
    min-height: 200px;
    display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.img-container:hover{
  cursor:pointer;
}

.paginator {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
}

.paginator ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.paginator li {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.paginator a {
  text-decoration: none;
  color: grey;
  font-weight: bold;
  margin: 0;
  padding: 0;
}

.paginator li.active a {
  color: #e06a10;
}

.paginator .prev, .paginator .next {
  background-color: grey;
  border-radius: 50%;
}

.paginator .prev a, .paginator .next a {
  color: white;
}

  /* Media queries para responsividad */
  @media (max-width: 1024px) {
    .products-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .products-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .hero-content h1 {
      font-size: 24px;
    }
  
    .hero-content p {
      font-size: 16px;
    }
    .btn-add-cart {
        opacity: 1;
    }
    .product-price {
        opacity: 1;
    }
  }
  
  @media (max-width: 480px) {
    .products-grid {
      grid-template-columns: 1fr;
    }
  
    .hero-content h1 {
      font-size: 20px;
    }
  
    .hero-content p {
      font-size: 14px;
    }
  
    .search-input {
      padding: 10px 15px;
      font-size: 14px;
    }
  
    .search-button {
      padding: 0 15px;
    }
    .btn-add-cart {
        opacity: 1;
    }
    .product-info {
        opacity: 1;
    }
  }
  