:root {
	--kyocera-red: #E31A2F;
	--kyocera-black: #231F20;
}

body {
	font-family: "Roboto", Arial, sans-serif;
	background: #f7f7f7;
	margin: 0;
	padding: 0;
}

.container {
	width: 95%;
	max-width: 1200px;
	margin: 16px auto;
	background: #fff;
	padding: 32px 24px;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	position: relative;
}

.cantidad-wrapper {
	flex-shrink: 0;
}

.cantidad-row {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.acciones-derecha {
	margin-left: auto;
	display: flex;
	gap: 8px;
}

.md-headline {
	text-align: center;
	font-size: 2.5rem;
	font-weight: 500;
	margin-top: 0;
	margin-bottom: 32px;
	color: var(--kyocera-black);
	margin-bottom: 32px;
}

.md-form-group {
	margin-bottom: 24px;
}

.md-label {
	font-size: 1.1em;
	color: #555;
	margin: 0;
	display: inline-block;
	line-height: 48px;
}

.md-input-row {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
}

.md-input {
	flex: 1;
	min-width: 0;
	padding: 12px;
	font-size: 1.2em;
	border: 1px solid #bdbdbd;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s;
	height: 48px;
	box-sizing: border-box;
}

.md-input-cantidad {
	flex: 0 0 auto;
	min-width: 0;
	padding: 12px;
	font-size: 1.2em;
	border: 1px solid #bdbdbd;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.2s;
	height: 48px;
	box-sizing: border-box;
}

.md-input:focus {
	border-color: var(--kyocera-red);
}

.md-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 10px 18px;
	font-size: 1.1em;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s;
	font-weight: 500;
	height: 48px;
	box-sizing: border-box;
	flex-shrink: 0;
	white-space: nowrap;
}

.md-btn-primary {
	background: var(--kyocera-red);
	color: #fff;
}

.md-btn-primary:hover {
	background: #c71b27;
}

.md-btn-secondary {
	background: #e0e0e0;
	color: #333;
}

.md-btn-secondary:hover {
	background: #bdbdbd;
}

.md-btn-success {
	background: rgb(255, 255, 128);
	color: rgb(0, 0, 0);
}

.md-btn-success:hover {
	background: rgb(255, 255, 0);
}

.md-list-item {
	border-bottom: 2px solid rgb(178, 178, 178);
	padding-bottom: 12px;
}

.md-list-item:last-child {
	border-bottom: none;
}

.eliminar-item-modal {
	cursor: pointer;
}

#resultado {
	font-size: 2.5rem;
	padding: 32px;
	background: #fff4f3;
	border: 2px solid var(--kyocera-red);
	border-radius: 16px;
	margin-top: 32px;
	margin-bottom: 16px;
	font-weight: 500;
}

#resultado strong {
	font-size: 3rem;
	color: var(--kyocera-red);
	margin-bottom: 12px;
}

/* Responsive */
@media ( max-width : 500px) {
	.md-input-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}
	.md-btn {
		width: 100%;
		justify-content: center;
	}
}

@media ( max-width : 600px) {
	#resultado {
		font-size: 3rem;
	}
	#resultado strong {
		font-size: 3.5rem;
	}
}

.precio {
	display: inline-block;
	font-weight: bold;
	color: rgb(255, 255, 255);
	background: rgb(0, 0, 0);
	padding: 8px 16px;
	border: 2px solid var(--kyocera-red);
	border-radius: 12px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	margin-top: 2px;
	margin-bottom: 12px;
	min-width: 180px;
	text-align: right;
}