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

/* ================= BODY ================= */
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, #e0f2fe, #f0fdf4);
  color: #0f172a;
}

/* ================= HEADER ================= */
.header {
  text-align: center;
  padding: 50px 20px 30px;
  position: relative;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
}

.subtitle {
  color: #64748b;
  margin-top: 5px;
}

.top-info {
  margin-top: 10px;
  font-size: 14px;
  color: #16a34a;
}
.logo-principal {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
/* ================= CARRITO ICON ================= */
.cart-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  font-weight: bold;
  background: white;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: 0.25s;
}

.cart-icon:hover {
  transform: scale(1.08);
}

/* ================= PROMO ================= */
.promo {
  text-align: center;
  color: #16a34a;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ================= SECTIONS ================= */
.section {
  padding: 30px 15px;
}

.section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}

/* ================= CARDS ================= */
.card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  transition: 0.3s;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
}

/* ================= LOGOS ================= */
.logo {
  width: 90px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ================= TEXT ================= */
.card h3 {
  margin: 10px 0 5px;
}

.price {
  font-size: 22px;
  margin: 10px 0;
  color: #16a34a;
  font-weight: bold;
}

/* ================= BUTTON ================= */
button {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  border: none;
  padding: 12px;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.25s;
}

button:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 15px rgba(34,197,94,0.4);
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 20px;
  color: #64748b;
  margin-top: 40px;
}

/* ===================================================== */
/* 🛒 SOLO CARRITO.HTML */
/* ===================================================== */

.carrito-page {
  max-width: 500px;
  margin: 40px auto;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* ITEMS */
#lista-carrito {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-carrito {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  transition: 0.2s;
}

.item-carrito:hover {
  transform: scale(1.02);
}

/* INFO */
.item-info {
  font-size: 14px;
}

/* BOTÓN ELIMINAR */
.btn-eliminar {
  background: #ef4444;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
}

/* RESUMEN */
.resumen {
  margin-top: 20px;
  background: #f1f5f9;
  padding: 15px;
  border-radius: 12px;
}

.resumen p,
.resumen h3 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

/* ================= MÉTODO DE PAGO ================= */
.metodo-pago {
  margin-top: 20px;
  padding: 15px;
  background: #020617;
  border-radius: 15px;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.metodo-pago p {
  margin-bottom: 10px;
  color: #94a3b8;
}

.metodo-pago .opciones {
  display: flex;
  gap: 10px;
}

.metodo-pago button {
  flex: 1;
  background: #1f2937;
  border-radius: 10px;
  padding: 12px;
}

.metodo-pago button.activo {
  background: linear-gradient(135deg, #22c55e, #4ade80);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(34,197,94,0.5);
}

/* BOTONES */
.btn-pagar {
  width: 100%;
  margin-top: 15px;
  font-size: 16px;
}

.btn-vaciar {
  width: 100%;
  margin-top: 10px;
  background: #ef4444;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .carrito-page {
    width: 90%;
  }
}
