* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  line-height: 1.6;
}

/* HEADER */
header {
  background-color: #222;
  padding: 15px 0;
}
header nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}
header nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
header nav ul li a:hover {
  color: #ffcc00;
}


.container {
  width: 90%;
  max-width: 1200px;
  margin: 30px auto;
}

/* FILTROS */
#filtros {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}
#filtros h1 {
  margin-bottom: 15px;
  text-align: center;
}
.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}
#filtros input,
#filtros select,
#filtros button {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}
#filtros button {
  background-color: #222;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}
#filtros button:hover {
  background-color: #444;
}

/* CATALOGO */
#catalogo h2 {
  margin: 20px 0;
  text-align: center;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-body h3 {
  margin-bottom: 5px;
}
.card-body .precio {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}
.card-body button {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #2ecc71;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.card-body button:hover {
  background: #27ae60;
}

/* CARRITO */
#carrito {
  margin-top: 40px;
}
#carrito h2 {
  margin-bottom: 15px;
  text-align: center;
}
.carrito-item {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.carrito-item strong {
  font-size: 16px;
}
.carrito-item .acciones button {
  margin-left: 5px;
  padding: 6px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.carrito-item .acciones button:hover {
  opacity: 0.8;
}
.carrito-item .acciones [data-act="menos"] {
  background: #f39c12;
  color: white;
}
.carrito-item .acciones [data-act="mas"] {
  background: #3498db;
  color: white;
}
.carrito-item .acciones [data-act="eliminar"] {
  background: #e74c3c;
  color: white;
}

.totales {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}
.totales label {
  font-weight: bold;
}
.totales select {
  margin: 0 10px;
  padding: 5px;
}
.totales .resumen {
  margin: 15px 0;
  font-size: 16px;
}
#btnCheckout {
  padding: 12px;
  width: 100%;
  background: #27ae60;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 16px;
  cursor: pointer;
}
#btnCheckout:hover {
  background: #219150;
}

/* HOME BANKING */
#banco {
  margin-top: 40px;
}
#banco h2 {
  text-align: center;
  margin-bottom: 15px;
}
#saldo {
  font-size: 20px;
  font-weight: bold;
}
#transacciones ul {
  margin-top: 15px;
  list-style: none;
}
#transacciones li {
  background: #fff;
  margin-bottom: 8px;
  padding: 10px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
#btnResetBanco {
  margin-top: 15px;
  padding: 10px 15px;
  border: none;
  background: #e67e22;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}
#btnResetBanco:hover {
  background: #d35400;
}

/* FOOTER */
footer {
  margin-top: 40px;
  padding: 15px;
  text-align: center;
  background: #222;
  color: #fff;
}
