body {
  font-family: "Times New Roman", serif;
  margin: 0;
  background: #f0f2f5;
}

.hero {
  text-align: center;
  background: linear-gradient(135deg, #cc7000, #ff8c00);
  padding: 30px 20px;
  color: white;
  position: relative;
}

.logo {
  position: absolute;
  top: 15px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  width: 45px;
}

.titulo {
  display: inline-block;
  color: white;
  text-shadow: 
    -1px -1px 0 black,
    1px -1px 0 black,
    -1px 1px 0 black,
    1px 1px 0 black;
}

.busqueda {
  margin-top: 15px;
}

#buscador, #filtroUbicacion {
  padding: 10px;
  border-radius: 8px;
  border: none;
  margin: 5px;
}

.contenedor {
  display: flex;
}

.categorias {
  width: 220px;
  background: white;
  padding: 15px;
}

.categorias ul {
  list-style: none;
  padding: 0;
}

.categorias li {
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

.categorias li:hover {
  background: #e0e0e0;
}

/* PRODUCTOS */
.productos {
  flex: 1;
  padding: 25px;
}

#catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

/* TARJETAS */
.producto {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
}

.producto img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.producto h3,
.producto p {
  margin: 10px;
}

.producto input {
  margin: 10px;
  padding: 5px;
  width: calc(100% - 20px);
}

/* BOTONES */
.btn {
  background: #1f8f3a;
  color: white;
  padding: 10px;
  margin: 10px;
  border-radius: 10px;
  display: block;
  text-align: center;
  cursor: pointer;
}

.btn:hover {
  background: #166d2c;
}

.volver {
  grid-column: 1 / -1;
  display: inline-block;
  margin: 0 0 10px 5px;
  cursor: pointer;
  font-size: 14px;
  color: #ff8c00;
  background: none;
  padding: 0;
}

.volver:hover {
  text-decoration: underline;
}

.volver::before {
  content: "← ";
}
