.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
  
  .producto {
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Muy importante */
  }
  
  .producto:hover {
    transform: translateY(-5px);
  }
  
  .producto img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: #fff;
  }
  
  .producto-info h5 {
    font-weight: bold;
    font-size: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .producto-info hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: .5rem 0 1rem;
  }
  
  .producto-info p {
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  
  .producto-info .btn {
    background: #ED1B24;
    border: none;
    color: #fff;
  }

  .producto-info .btn:hover {
    background: #a01a1f;
  }
  .producto-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
  }
  
  .producto-body {
    flex-grow: 1;
  }
  
  .producto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
  }


  /* Búsqueda desplegable */
.busqueda-container {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #0E0F3F;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
  z-index: 9;
}

/* Cuando añadimos .show, animamos hacia abajo y lo hacemos visible */
.busqueda-container.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

