html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.contenido{
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  flex: 1; /* Empuja el footer abajo */

}


/*----------------------------------------*/

/* Layout carrito */
.cart-container {
  display: flex;
  justify-content: space-between;
  width: 90%;
  margin: 40px auto;
  gap: 40px;
  color: var(--text);
}

/* Carrito izquierda */
.cart-left,
.cart-right {
  background: var(--panel);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.06);
}

.cart-left { flex: 2; }
.cart-right { flex: 1; }

.cart-left h2,
.cart-right h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}

/* Item del carrito */
.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-item:hover {
  background: rgba(255,255,255,0.03);
  transition: 0.2s;
}


.cart-item img {
  width: 120px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}


.item-info p { margin: 4px 0; }
.price { font-weight: 600; color: var(--accent); }




.field-group input,
.field-group textarea {
  color: var(--muted);
  background: var(--panel);
  border: 1px solid #555;
  border-radius: 8px;
  padding: 10px 12px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  font-size: 20px;
  gap: 18px;
}

.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--accent);
}



/* Botones + - cantidad */
.item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-actions button {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0e2e41;
  color: var(--text);
  cursor: pointer;
  transition: 0.2s;
}
.item-actions button:hover {
  background: var(--accent);
  color: #05200f;
}

.item-actions input {
  width: 42px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  background: #0e2e41;
  color: var(--text);
}

/* Total por item */
.item-total {
  font-weight: bold;
  text-align: right;
}

/* Botón eliminar */
.remove {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--muted);
  transition: 0.2s;
}
.remove:hover {
  color: #ff4d4d;
}

/* Resumen del pedido */
.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
}
.summary-row.total {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
}

/* Botón checkout */
.checkout {
  background: linear-gradient(180deg,var(--accent), #00b44a);
  color: #05200f;
  padding: 14px;
  width: 100%;
  border: none;
  margin-top: 20px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  transition: 0.18s;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.checkout:hover {
  transform: translateY(-2px) scale(1.02);
}


.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;                         /* Separación entre icono y texto */
  background: #25D366;              /* Verde WhatsApp */
  color: #05200f;
  padding: 14px;
  width: 100%;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 25px;
  text-decoration: none;
  cursor: pointer;
  transition: 0.25s;
}

.btn-whatsapp:hover {
  background: #1eb652;              /* Verde más oscuro */
}
