body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #fffaf0;
  color: #333;
}

header {
  background: #d4a373;
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
}

nav a {
  color: white;
  margin: 0 1rem;
  text-decoration: none;
  font-weight: bold;
}

#hero {
  background: #faedcd;
  padding: 2rem;
  text-align: center;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  justify-content: center;
}

.producto {
  background: white;
  padding: 1rem;
  border: 1px solid #ddd;
  max-width: 200px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 0 10px #eee;
}

.producto img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.boton, .boton-secundario {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 1rem;
  background: #d4a373;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.boton-secundario {
  background: #b08968;
}

form {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  margin: auto;
  gap: 0.5rem;
}

input, textarea, button {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
}

button {
  background-color: #d4a373;
  color: white;
  border: none;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  margin-top: 2rem;
}

/* Carrito */
#carrito-icono {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
}

#contador-carrito {
  background: red;
  color: white;
  border-radius: 50%;
  padding: 0.1rem 0.4rem;
  font-size: 0.8rem;
  position: absolute;
  top: -10px;
  right: -10px;
}

#tooltip {
  display: none;
  position: absolute;
  top: 0;
  right: 60px;
  background: #333;
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

#carrito-icono:hover #tooltip {
  display: block;
}

#carrito-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -3px 0 10px rgba(0,0,0,0.3);
  padding: 1rem;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 999;
}

#carrito-panel.active {
  right: 0;
}

#lista-carrito {
  list-style: none;
  padding: 0;
}

#lista-carrito li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#lista-carrito li .boton-secundario {
  margin-left: 5px;
  font-size: 0.8rem;
  padding: 0.2rem 0.4rem;
}

.qr-contenedor {
  display: none;
  margin-top: 1rem;
}