/* Ocultar checkbox */
#buscador-desplegable {
    display: none;
  }
  
  /* Header */
  .header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
  }
  
  /* Título centrado */
  .titulo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* Buscador oculto por defecto */
  .buscador {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
  
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px;
  
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
  }
  
  /* Mostrar cuando checkbox está activo */
  #buscador-desplegable:checked ~ .buscador {
    opacity: 1;
    pointer-events: all;
  }
  /*estos estilos son para el carrito en el catalogo*/
  .card {
    width: 100%;
    background: white;
    border-radius: 10px;
    padding: 10px;
  }
  
  .card img {
    width: 100%;
    border-radius: 10px;
  }
  
  .card h3 {
    margin: 10px 0 5px 0;
    font-size: 16px;
  }
  
  .cart {
    background-color: black;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
  }
  /*propiedades de los productos en el catalogo*/
  .grid-productos {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    padding: 10px;
    background-color:#F5F7FA;
  }
 .card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.active {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
/*estilo para las listas desplegables del catalogo*/
.filtros {
  display: flex ;
  gap: 15px;              /* separación entre ellos */
  justify-content: space-around; /* los centra horizontalmente */
  flex-wrap: wrap;         /* permite que se ajusten en varias filas si no caben en una sola */
  padding: 10px;
}
.lista {
  margin-bottom: 10px;
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

}

summary {
  cursor: pointer;
  font-weight: bold;
}

ul {
  margin-top: 10px;
  padding-left: 15px;
}
.revisar{
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #007BFF;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

/*estilos para la barra de navegacion en catalogo*/
.navbar {
  position: relative;
  bottom: 0;
  width: 100%;
   background:  #046366;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 8px 0;
}

.nav-item {
  text-decoration: none;
  color: white;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item span {
  font-size: 18px;
}

.nav-item.active {
  color: black;
  font-weight: bold;
}
