.button-cotizar {
	display: block;
	margin-top: 12px;
	background: #244793;
	color: #fff;
	text-align: center;
	font-weight: 700;
	border: 0;
	border-radius: var(--nx-button-radius, 6px);
	padding: 14px 30px;
	letter-spacing: .02em;
}

.button-cotizar:hover,
.button-cotizar:focus {
	background: #1b3675;
	color: #fff;
}

.nxq-panel {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	overflow: auto;
	background: rgba(15, 23, 42, .72);
	padding: 24px;
}

.nxq-panel:target,
.nxq-panel--visible {
	display: block;
}

.nxq-sheet {
	max-width: 1120px;
	margin: 0 auto;
	background: #fff;
	border-radius: 8px;
	padding: 22px;
	box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.nxq-sheet--form {
	max-width: 760px;
}

.nxq-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 18px;
}

.nxq-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.nxq-btn--primary {
	background: #244793;
	color: #fff;
	border-color: #244793;
}

.nxq-btn--secondary {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.nxq-btn--ghost {
	background: #fff;
	color: #111827;
}

.nxq-send-form {
	margin: 0;
}

.nxq-form__header {
	text-align: center;
	margin-bottom: 22px;
}

.nxq-form__header img {
	display: block;
	width: auto;
	max-height: 54px;
	margin: 0 auto 14px;
}

.nxq-form__header h2 {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
	color: #111827;
}

.nxq-form__header p {
	max-width: 560px;
	margin: 0 auto;
	color: #64748b;
	font-size: 14px;
	line-height: 1.45;
}

.nxq-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.nxq-form__grid--simple {
	grid-template-columns: 1fr;
	max-width: 520px;
	margin: 0 auto;
}

.nxq-form label {
	display: grid;
	gap: 6px;
	margin: 0;
	color: #1f2937;
	font-size: 13px;
	font-weight: 700;
}

.nxq-form input,
.nxq-form textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 11px 12px;
	font: inherit;
	font-size: 14px;
	color: #111827;
	background: #fff;
}

.nxq-form textarea {
	resize: vertical;
}

.nxq-field--wide {
	grid-column: 1 / -1;
}

.nxq-form .nxq-btn--primary {
	width: 100%;
	margin-top: 18px;
}

.nxq-alert {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 6px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 14px;
	font-weight: 700;
}

.nxq-alert--success {
	background: #ecfdf5;
	color: #065f46;
}

.nxq-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nxq-doc {
	color: #000;
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 11px;
	line-height: 1.5;
	padding: 32px;
}

.nxq-doc table {
	width: 100%;
	border-collapse: collapse;
}

/* Logo on its own row at the top. */
.nxq-doc__brand {
	margin: 0 0 18px;
}

.nxq-doc__brand img {
	display: block;
	width: auto;
	max-height: 60px;
}

/* Single borderless <table> for the doc header.
   Tables lock row alignment: each <tr> is a single line-box that
   spans both cells, so left/right columns cannot drift apart
   regardless of font metrics or browser cache. */
.nxq-doc__header {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0 0 22px;
	padding: 0 0 18px;
	border-bottom: 1px solid #e5e7eb;
	font-size: 12px;
	line-height: 1.45;
}

.nxq-doc__header td {
	padding: 3px 0;
	border: 0;
	vertical-align: top;
}

.nxq-doc__cell-left {
	width: 65%;
	padding-right: 24px;
}

.nxq-doc__cell-right {
	width: 35%;
	text-align: left;
}

.nxq-doc__header strong {
	font-weight: 700;
}

.nxq-doc__meta-label {
	font-weight: 700;
}

.nxq-client {
	display: grid;
	gap: 4px;
	margin-bottom: 24px;
}

.nxq-client span {
	font-weight: 700;
}

.nxq-items {
	table-layout: fixed;
	border-bottom: 2px solid #000;
	margin-bottom: 8px;
}

.nxq-items th {
	padding: 0 4px 10px;
	border-bottom: 1px solid #000;
	text-transform: uppercase;
}

.nxq-items td {
	padding: 10px 4px;
	border-bottom: 1px solid #e5e7eb;
	vertical-align: top;
	word-break: break-word;
}

.nxq-col-code {
	width: 12%;
}

.nxq-col-desc {
	width: 42%;
}

.nxq-col-qty {
	width: 7%;
	text-align: center;
}

.nxq-col-price,
.nxq-col-tax,
.nxq-col-total {
	width: 13%;
	text-align: right;
}

.nxq-totals {
	display: flex;
	justify-content: flex-end;
}

.nxq-totals table {
	width: 280px;
}

.nxq-totals th,
.nxq-totals td {
	padding: 5px 4px;
	border: 0;
}

.nxq-totals th {
	text-align: left;
}

.nxq-totals td {
	text-align: right;
}

.nxq-total-row th,
.nxq-total-row td {
	padding-top: 10px;
	font-weight: 700;
}

@media screen and (max-width: 760px) {
	.nxq-panel {
		padding: 12px;
	}

	.nxq-sheet,
	.nxq-doc {
		padding: 16px;
	}

	.nxq-actions,
	.nxq-form__grid,
	.nxq-doc__header,
	.nxq-doc__cell-left,
	.nxq-doc__cell-right {
		display: block;
		width: 100%;
		padding: 0;
	}

	.nxq-actions {
		display: grid;
	}

	.nxq-items {
		font-size: 10px;
	}
}

@media print {
	body > *:not(.nxq-panel) {
		display: none !important;
	}

	.nxq-panel,
	.nxq-panel:target,
	.nxq-panel--visible {
		display: block !important;
		position: static;
		inset: auto;
		overflow: visible;
		background: #fff;
		padding: 0;
	}

	.nxq-sheet {
		max-width: none;
		box-shadow: none;
		border-radius: 0;
		padding: 0;
	}

	.nxq-actions {
		display: none;
	}

	.nxq-doc {
		padding: 0;
	}
}
