/* Checkout / presupuesto — referencia visual: tarjetas claras, borde #e0e0e0, acento azul */

.checkout-page {
	--checkout-bg: #f4f4f5;
	--checkout-card: #ffffff;
	--checkout-border: #e0e0e0;
	--checkout-text: #1a1a1a;
	--checkout-muted: #5c5c5c;
	--checkout-muted-soft: #8a8a8a;
	--checkout-accent: #2a6a95;
	--checkout-radius: 8px;
	--checkout-radius-panel: 10px;
	--checkout-green: #2d7a4f;
	font-family: "Montserrat", system-ui, sans-serif;
	color: var(--checkout-text);
	padding: 2rem 1rem 4rem;
	max-width: 1320px;
	margin: 0 auto;
}

.checkout-flash {
	max-width: 1200px;
	border-radius: var(--checkout-radius);
}

.checkout-form-errors {
	border-radius: var(--checkout-radius);
	margin-bottom: 1.5rem;
}

.checkout-page__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 992px) {
	.checkout-page__inner {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 2.5rem;
	}
}

.checkout-main {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.checkout-section {
	background: transparent;
}

.checkout-section--cart .checkout-section__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.checkout-section__title {
	font-family: "Lora", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0;
	color: var(--checkout-text);
}

.checkout-section__title--sm {
	font-size: 1.25rem;
}

.checkout-section__intro {
	margin-bottom: 1.25rem;
}

.checkout-section__subtitle {
	margin: 0.35rem 0 0;
	font-size: 0.9rem;
	color: var(--checkout-muted);
	max-width: 42rem;
	line-height: 1.45;
}

.checkout-section--optional .checkout-section__subtitle {
	font-style: italic;
}

.checkout-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.checkout-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.75rem;
	height: 1.75rem;
	padding: 0 0.4rem;
	font-size: 0.85rem;
	font-weight: 600;
	font-family: "Montserrat", sans-serif;
	color: #fff;
	background: var(--checkout-accent);
	border-radius: 999px;
}

.checkout-cart-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.checkout-empty {
	margin: 0;
	padding: 2rem;
	text-align: center;
	color: var(--checkout-muted);
	background: var(--checkout-card);
	border: 1px solid var(--checkout-border);
	border-radius: var(--checkout-radius);
}

/* Item card — layout tipo maqueta: imagen | detalles + rejilla 2×2 | precio + papelera; pie con pastilla */
.checkout-item-card {
	background: var(--checkout-card);
	border: 1px solid var(--checkout-border);
	border-radius: var(--checkout-radius);
	padding: 1.25rem 1.35rem 1.15rem 1.15rem;
}

.checkout-item-card__top {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
	gap: 1.25rem;
	align-items: start;
}

.checkout-item-card__thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	flex-shrink: 0;
	padding: 0.35rem;
	background: #fafafa;
	border: 1px solid var(--checkout-border);
	border-radius: 10px;
	box-sizing: border-box;
}

.checkout-item-card__thumb img {
	width: 100%;
	height: 100%;
	max-width: 96px;
	max-height: 96px;
	object-fit: contain;
	border-radius: 6px;
	border: none;
}

.checkout-item-card__content {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.checkout-item-card__mid {
	display: flex;
	align-items: stretch;
	gap: 1rem 1.5rem;
}

.checkout-item-card__details {
	flex: 1;
	min-width: 0;
}

.checkout-item-card__title {
	font-size: 1.05rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
	font-family: "Montserrat", sans-serif;
	color: var(--checkout-text);
	line-height: 1.25;
}

.checkout-item-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 0.85rem;
}

.checkout-item-card__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.3;
}

.checkout-item-card__pill--ref {
	background: #ececec;
	color: #3d3d3d;
}

.checkout-item-card__pill--eco {
	background: rgba(45, 122, 79, 0.14);
	color: var(--checkout-green);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.checkout-item-card__pill--eco .fa-recycle {
	font-size: 0.85em;
	opacity: 0.95;
}

.checkout-item-card__specs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem 1.75rem;
	margin: 0;
}

@media (max-width: 520px) {
	.checkout-item-card__specs-grid {
		grid-template-columns: 1fr;
		gap: 0.65rem;
	}
}

.checkout-item-card__spec {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.checkout-item-card__spec-label {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--checkout-muted-soft);
	line-height: 1.3;
}

.checkout-item-card__spec-value {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--checkout-text);
	line-height: 1.35;
	word-break: break-word;
}

.checkout-item-card__spec-value--file {
	font-weight: 700;
}

.checkout-item-card__file-name {
	font-weight: 700;
}

.checkout-item-card__warn {
	color: #b7791f;
	font-size: 0.8125rem;
	font-weight: 600;
}

.checkout-item-card__aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	flex-shrink: 0;
	min-width: 7.5rem;
}

.checkout-item-card__pricing {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	align-items: flex-end;
}

.checkout-item-card__line-total {
	font-family: "Lora", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--checkout-text);
}

.checkout-item-card__unit-note {
	font-size: 0.8125rem;
	color: var(--checkout-muted-soft);
	font-family: "Montserrat", sans-serif;
	font-weight: 500;
}

.checkout-item-card__remove {
	margin-top: auto;
	width: 2.25rem;
	height: 2.25rem;
	border: none;
	background: transparent;
	color: #b0b0b0;
	cursor: pointer;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	transition: color 0.15s, background 0.15s;
}

.checkout-item-card__remove:hover {
	color: #c0392b;
	background: rgba(192, 57, 43, 0.08);
}

.checkout-item-card__divider {
	height: 1px;
	background: var(--checkout-border);
	margin: 1rem 0 0.85rem;
	width: 100%;
}

.checkout-item-card__footer {
	margin: 0;
}

.checkout-item-card__footer-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--checkout-border);
	background: #f5f5f5;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--checkout-muted);
	max-width: 100%;
}

.checkout-item-card__swatch {
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	border: 1px solid #cfcfcf;
	background: linear-gradient(135deg, #ffffff 45%, #d8d8d8 45%);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.checkout-item-card__footer-text {
	line-height: 1.35;
}

@media (max-width: 640px) {
	.checkout-item-card__top {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 1rem;
	}

	.checkout-item-card__thumb {
		width: 88px;
		height: 88px;
	}

	.checkout-item-card__mid {
		flex-direction: column;
		align-items: stretch;
	}

	.checkout-item-card__aside {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		text-align: left;
		min-width: 0;
		width: 100%;
		padding-top: 0.25rem;
	}

	.checkout-item-card__pricing {
		align-items: flex-start;
		text-align: left;
	}

	.checkout-item-card__remove {
		margin-top: 0;
	}
}

/* Datos entrega */
.checkout-split {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.checkout-split {
		grid-template-columns: 1fr 1fr;
		gap: 1.25rem;
	}
}

.checkout-card {
	background: var(--checkout-card);
	border: 1px solid var(--checkout-border);
	border-radius: var(--checkout-radius);
	padding: 1.25rem 1.35rem;
}

.checkout-card--panel {
	border-radius: var(--checkout-radius-panel);
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.checkout-card__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 1.25rem 0.65rem;
	flex-wrap: wrap;
	background-color: var(--checkout-bg);;
}

.checkout-card__head-icon {
	color: var(--checkout-muted-soft);
	font-size: 0.95rem;
	width: 1.1rem;
	text-align: center;
	flex-shrink: 0;
}

.checkout-card__head-title {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--checkout-muted-soft);
	line-height: 1.3;
}

.checkout-card__head-aside {
	margin-left: auto;
	font-size: 0.78rem;
	font-style: italic;
	font-weight: 500;
	color: var(--checkout-muted-soft);
}

.checkout-card__rule {
	height: 1px;
	background: var(--checkout-border);
}

.checkout-card__body {
	padding: 1.1rem 1.25rem 1.2rem;
}

.checkout-card__body--flush {
	padding-top: 0;
	padding-left: 0;
	padding-right: 0;
	padding-bottom: 0;
}

.checkout-card--panel .checkout-card__body .checkout-field:last-child,
.checkout-card--panel .checkout-card__body .checkout-field-grid:last-child .checkout-field:last-child {
	margin-bottom: 0;
}

.checkout-card--panel .checkout-field label,
.checkout-card--panel .checkout-field .col-form-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--checkout-muted-soft);
}

.checkout-card__label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--checkout-muted);
	margin: 0 0 1rem;
	font-weight: 600;
}

.checkout-field-grid {
	display: grid;
	gap: 0 1rem;
}

.checkout-field-grid--2 {
	grid-template-columns: 1fr 1fr;
}

@media (max-width: 576px) {
	.checkout-field-grid--2 {
		grid-template-columns: 1fr;
	}
}

.checkout-field {
	margin-bottom: 0.85rem;
}

.checkout-field label,
.checkout-field .col-form-label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--checkout-muted);
	margin-bottom: 0.35rem;
	font-family: "Montserrat", sans-serif;
}

.checkout-input,
.checkout-textarea,
.checkout-field input[type="text"],
.checkout-field input[type="email"],
.checkout-field input[type="tel"],
.checkout-field input[type="number"],
.checkout-field input[type="date"],
.checkout-field select,
.checkout-field textarea {
	width: 100% !important;
	border: 1px solid var(--checkout-border) !important;
	border-radius: var(--checkout-radius) !important;
	padding: 0.65rem 0.85rem !important;
	font-size: 0.95rem !important;
	font-family: "Montserrat", sans-serif !important;
	background: #fff !important;
	min-height: 44px;
	box-sizing: border-box;
}

.checkout-field textarea,
.checkout-textarea {
	min-height: 120px;
	resize: vertical;
}

.checkout-field .invalid-feedback {
	font-size: 0.8rem;
}

.checkout-field--date input[type="date"],
.checkout-field--date input.checkout-input {
	padding-right: 2.5rem !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%238a8a8a' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 1rem 1rem;
}

/* Tipo entrega — filas dentro de una sola tarjeta */
.checkout-card--tipo-entrega .checkout-field--tipo-entrega {
	margin-bottom: 0;
}

.checkout-tipo-entrega-radios {
	display: flex;
	flex-direction: column;
}

.checkout-radio-row {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--checkout-border);
}

.checkout-radio-row:last-child {
	border-bottom: none;
}

.checkout-radio-row__line {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.checkout-radio-row__line input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 1.15rem;
	height: 2.35rem;
	min-width: 1.15rem;
	margin: 0.2rem 0 0;
	border: 2px solid #b8b8b8;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s, box-shadow 0.15s;
	flex-shrink: 0;
}

.checkout-radio-row__line input[type="radio"]:hover {
	border-color: var(--checkout-accent);
}

.checkout-radio-row__line input[type="radio"]:focus-visible {
	outline: 2px solid var(--checkout-accent);
	outline-offset: 2px;
}

.checkout-radio-row__line input[type="radio"]:checked {
	border-color: var(--checkout-accent);
	background: #fff;
	box-shadow: inset 0 0 0 0.2rem var(--checkout-accent);
}

.checkout-radio-row__label {
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	color: var(--checkout-text);
	cursor: pointer;
	margin: 0;
	padding: 0;
	line-height: 1.35;
}

.checkout-radio-row__hint {
	margin: 0.35rem 0 0;
	padding-left: 1.9rem;
	font-size: 0.875rem;
	color: var(--checkout-muted);
	line-height: 1.45;
}

.checkout-radio-row:has(input:checked) {
	background: rgba(42, 106, 149, 0.04);
}

/* Aside */
.checkout-aside {
	position: relative;
}

.checkout-summary {
	position: sticky;
	top: 1rem;
	background: var(--checkout-card);
	border: 1px solid var(--checkout-border);
	border-radius: var(--checkout-radius-panel);
	padding: 0;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.checkout-summary__head {
	padding: 1.35rem 1.5rem 1.2rem;
	border-bottom: 1px solid #eeeeee;
}

.checkout-summary__title {
	font-family: "Lora", Georgia, serif;
	font-size: 1.45rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.25;
	color: var(--checkout-text);
}

.checkout-summary__section {
	border-bottom: 1px solid #eeeeee;
}

.checkout-summary__section:last-child {
	border-bottom: none;
}

.checkout-summary__section--products {
	padding: 0.85rem 1.5rem 1rem;
}

.checkout-summary__lines {
	list-style: none;
	padding: 0;
	margin: 0;
}

.checkout-summary__lines:empty {
	display: none;
}

.checkout-summary__line {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	font-size: 0.9rem;
	padding: 0.55rem 0;
	border-top: 1px solid #eeeeee;
	color: var(--checkout-muted);
}

.checkout-summary__line:first-child {
	border-top: none;
	padding-top: 0;
}

.checkout-summary__empty-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0;
	padding: 0.35rem 0 0.15rem;
	font-size: 0.9rem;
	color: var(--checkout-muted-soft);
	font-family: "Montserrat", system-ui, sans-serif;
}

.checkout-summary__empty-placeholder {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--checkout-muted-soft);
	line-height: 1;
}

.checkout-summary__name {
	color: var(--checkout-text);
	font-weight: 500;
}

.checkout-summary__price {
	font-weight: 600;
	white-space: nowrap;
	color: var(--checkout-text);
}

.checkout-summary__section--total {
	padding: 0;
	border-bottom: 1px solid #eeeeee;
}

.checkout-summary__total-block {
	background: #1a1a1a;
	color: #fff;
	border-radius: 0;
	padding: 1.15rem 1.5rem;
	margin: 0;
}

.checkout-summary__total-inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
}

.checkout-summary__total-label {
	flex: 0 1 auto;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(232, 224, 214, 0.72);
	line-height: 1.4;
	max-width: 9rem;
	padding-top: 0.2rem;
}

.checkout-summary__total-values {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	text-align: right;
}

.checkout-summary__total-amount {
	display: block;
	font-family: "Lora", Georgia, serif;
	font-size: 1.85rem;
	font-weight: 700;
	line-height: 1.05;
	color: #fff;
}

.checkout-summary__total-note {
	display: block;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 0.72rem;
	font-weight: 500;
	color: rgba(232, 224, 214, 0.65);
	margin-top: 0.4rem;
}

.checkout-summary__section--bullets {
	padding: 1.1rem 1.5rem 1.15rem;
	background: #f4f4f5;
	border-bottom: 1px solid #eeeeee;
}

.checkout-summary__bullets {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 0.84rem;
	color: var(--checkout-muted);
	line-height: 1.55;
	font-family: "Montserrat", system-ui, sans-serif;
}

.checkout-summary__bullets li {
	position: relative;
	padding-left: 1.4rem;
	margin-bottom: 0.5rem;
}

.checkout-summary__bullets li:last-child {
	margin-bottom: 0;
}

.checkout-summary__bullets li::before {
	content: "✓";
	position: absolute;
	left: 0;
	font-weight: 700;
	color: var(--checkout-green);
}

.checkout-summary__section--notas {
	padding: 1.15rem 1.5rem 1.25rem;
}

.checkout-summary__section--actions {
	padding: 1.1rem 1.5rem 1.45rem;
	background: var(--checkout-card);
}

.checkout-summary__section--actions.checkout-actions {
	gap: 0.65rem;
}

.checkout-field--notas label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--checkout-muted-soft);
	font-weight: 600;
	margin-bottom: 0.5rem;
	display: block;
	font-family: "Montserrat", system-ui, sans-serif;
}

.checkout-actions {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.checkout-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.9rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	font-family: "Montserrat", sans-serif;
	border-radius: var(--checkout-radius);
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	box-sizing: border-box;
	text-align: center;
}

.checkout-btn--primary {
	background: #111;
	color: #fff;
	border-color: #111;
}

.checkout-btn--primary:hover {
	background: #333;
	color: #fff;
	border-color: #333;
}

.checkout-btn--secondary {
	background: #fff;
	color: var(--checkout-text);
	border-color: var(--checkout-border);
}

.checkout-btn--secondary:hover {
	background: #f8f8f8;
}

.checkout-btn--ghost {
	background: #fff;
	color: var(--checkout-text);
	border-color: var(--checkout-border);
}

.checkout-btn--ghost:hover {
	background: #fafafa;
}

/* Resumen lateral — botón principal en gris medio (maqueta) */
.checkout-summary .checkout-btn--primary {
	background: #111;
	border-color: #111;
}

.checkout-summary .checkout-btn--primary:hover {
	background: #5c5c5c;
	border-color: #5c5c5c;
	color: #fff;
}

.checkout-summary__section--notas textarea::placeholder {
	font-style: italic;
	color: var(--checkout-muted-soft);
	opacity: 0.9;
}
