/**
 * LlarNexus · cartel de escaparate (A4 vertical u horizontal, para imprimir o guardar en PDF).
 * Diseño: maqueta en PROYECTO/maquetas/cartel-escaparate.html (pendiente de pasar a Pencil, D-100).
 * Medidas en milímetros: el destino es el papel. `--lnx-sheet-color` sale del color de la web.
 */

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--lnx-sheet-color: #213480;
	--lnx-sheet-fg: #151a30;
	--lnx-sheet-muted: #5a6078;
	--lnx-sheet-line: #e2e5ee;
	--lnx-sheet-soft: #f5f6fa;
	--lnx-sheet-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

body.lnx-print {
	margin: 0;
	background: #e6e8ef;
	color: var(--lnx-sheet-fg);
	font-family: var(--lnx-sheet-font);
	-webkit-font-smoothing: antialiased;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Barra de opciones (solo en pantalla) ---------- */
.lnx-print__bar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding: 12px 24px;
	border-bottom: 1px solid #d9dce6;
	background: #fff;
	font-size: 14px;
}

.lnx-print__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 10px;
	border-radius: 6px;
	color: var(--lnx-sheet-fg);
	font-weight: 600;
	text-decoration: none;
}

.lnx-print__back:hover {
	background: var(--lnx-sheet-soft);
}

.lnx-print__options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-right: auto;
}

.lnx-print__seg {
	display: inline-flex;
	padding: 3px;
	border: 1px solid var(--lnx-sheet-line);
	border-radius: 8px;
	background: var(--lnx-sheet-soft);
}

.lnx-print__seg button {
	min-height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--lnx-sheet-muted);
	font: 600 13px var(--lnx-sheet-font);
	cursor: pointer;
	transition: background-color 150ms ease, color 150ms ease;
}

.lnx-print__seg button[aria-pressed="true"] {
	background: #fff;
	color: var(--lnx-sheet-fg);
	box-shadow: 0 1px 2px rgba(21, 26, 48, 0.12);
}

.lnx-print__check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-weight: 600;
	cursor: pointer;
}

.lnx-print__check input {
	width: 20px;
	height: 20px;
	accent-color: #213480;
}

.lnx-print__lang {
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--lnx-sheet-line);
	border-radius: 8px;
	background: #fff;
	font: 600 13px var(--lnx-sheet-font);
}

.lnx-print__go {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 20px;
	border: 0;
	border-radius: 6px;
	background: #213480;
	color: #fff;
	font: 700 14px var(--lnx-sheet-font);
	cursor: pointer;
	transition: background-color 150ms ease, transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.lnx-print__go:hover {
	background: #18275f;
}

.lnx-print__go:active {
	transform: scale(0.97);
}

.lnx-print__bar :focus-visible {
	outline: 2px solid #213480;
	outline-offset: 2px;
}

.lnx-print__hint {
	flex-basis: 100%;
	margin: 0;
	font-size: 12px;
	color: var(--lnx-sheet-muted);
}

.lnx-print__stage {
	display: flex;
	justify-content: center;
	padding: 32px 16px 64px;
	overflow-x: auto;
}

/* ---------- La hoja ---------- */
.lnx-sheet {
	display: grid;
	flex-shrink: 0;
	gap: 6mm;
	width: 210mm;
	height: 297mm;
	padding: 12mm;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 6px rgba(21, 26, 48, 0.08), 0 18px 40px rgba(21, 26, 48, 0.12);
	grid-template-rows: auto auto 1fr auto;
	grid-template-areas:
		"head"
		"photos"
		"body"
		"foot";
}

.lnx-sheet--landscape {
	width: 297mm;
	height: 210mm;
	grid-template-columns: 148mm 1fr;
	grid-template-rows: auto 1fr auto;
	grid-template-areas:
		"head head"
		"photos body"
		"photos foot";
	column-gap: 9mm;
}

.lnx-sheet svg {
	flex-shrink: 0;
}

/* Cabecera: logo o nombre de la agencia y «En venta». */
.lnx-sheet__head {
	grid-area: head;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6mm;
	min-height: 12mm;
}

.lnx-sheet__logo {
	display: block;
	max-width: 70mm;
	max-height: 13mm;
	object-fit: contain;
}

.lnx-sheet__agency {
	font-size: 15pt;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--lnx-sheet-color);
}

.lnx-sheet__tag {
	padding: 2.2mm 5mm;
	border-radius: 999px;
	background: var(--lnx-sheet-color);
	color: #fff;
	font-size: 12pt;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.lnx-sheet__tag.is-reserved {
	background: #8f5200;
}

.lnx-sheet__tag.is-sold {
	background: #891458;
}

/* Fotos: una grande o una grande y dos al lado. */
.lnx-sheet__photos {
	position: relative;
	grid-area: photos;
	display: grid;
	gap: 2mm;
	height: 104mm;
	overflow: hidden;
	border-radius: 3mm;
	grid-template-columns: 2fr 1fr;
	grid-template-rows: 1fr 1fr;
}

.lnx-sheet__photo {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	background: var(--lnx-sheet-soft);
}

.lnx-sheet__photo--main {
	grid-row: 1 / -1;
}

.lnx-sheet--photos-1 .lnx-sheet__photos {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.lnx-sheet--photos-1 .lnx-sheet__photo--side {
	display: none;
}

.lnx-sheet--landscape .lnx-sheet__photos {
	height: auto;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 2fr 1fr;
}

.lnx-sheet--landscape .lnx-sheet__photo--main {
	grid-row: auto;
	grid-column: 1 / -1;
}

.lnx-sheet--landscape.lnx-sheet--photos-1 .lnx-sheet__photos {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.lnx-sheet__drop {
	position: absolute;
	top: 4mm;
	left: 4mm;
	padding: 1.6mm 3.6mm;
	border-radius: 999px;
	background: #a8241a;
	color: #fff;
	font-size: 11pt;
	font-weight: 800;
}

/* Cuerpo: título, precio, datos, extracto y características. */
.lnx-sheet__body {
	grid-area: body;
	display: flex;
	flex-direction: column;
	gap: 5mm;
	min-height: 0;
	overflow: hidden;
}

.lnx-sheet__lead {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 6mm;
}

.lnx-sheet--landscape .lnx-sheet__lead {
	flex-direction: column;
	align-items: flex-start;
	gap: 3mm;
}

.lnx-sheet__name {
	min-width: 0;
}

.lnx-sheet__title {
	margin: 0;
	font-size: 22pt;
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.lnx-sheet__place {
	display: flex;
	align-items: center;
	gap: 1.6mm;
	margin: 2mm 0 0;
	font-size: 11.5pt;
	font-weight: 500;
	color: var(--lnx-sheet-muted);
}

.lnx-sheet__price {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	flex-shrink: 0;
	text-align: right;
}

.lnx-sheet--landscape .lnx-sheet__price {
	align-items: flex-start;
	text-align: left;
}

.lnx-sheet__price strong {
	font-size: 30pt;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--lnx-sheet-color);
	white-space: nowrap;
}

.lnx-sheet__before {
	margin-bottom: 1.4mm;
	font-size: 12pt;
	font-weight: 600;
	color: var(--lnx-sheet-muted);
}

.lnx-sheet__facts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 3mm;
	margin: 0;
	padding: 4mm 0;
	border-top: 0.3mm solid var(--lnx-sheet-line);
	border-bottom: 0.3mm solid var(--lnx-sheet-line);
	list-style: none;
}

.lnx-sheet__facts li {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto;
	column-gap: 2.4mm;
	align-items: center;
}

.lnx-sheet__facts svg {
	grid-row: 1 / -1;
	color: var(--lnx-sheet-color);
}

.lnx-sheet__facts strong {
	font-size: 15pt;
	font-weight: 800;
	line-height: 1.1;
}

.lnx-sheet__facts span {
	font-size: 8.5pt;
	font-weight: 600;
	color: var(--lnx-sheet-muted);
}

.lnx-sheet__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 10.5pt;
	line-height: 1.55;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	text-wrap: pretty;
}

.lnx-sheet--landscape .lnx-sheet__text {
	-webkit-line-clamp: 5;
}

.lnx-sheet__features {
	display: flex;
	flex-wrap: wrap;
	gap: 2mm;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lnx-sheet__features li {
	display: inline-flex;
	align-items: center;
	gap: 1.4mm;
	padding: 1.4mm 3mm;
	border-radius: 999px;
	background: var(--lnx-sheet-soft);
	font-size: 9.5pt;
	font-weight: 600;
}

.lnx-sheet__features svg {
	color: var(--lnx-sheet-color);
}

/* Pie: etiqueta energética, QR y contacto. */
.lnx-sheet__foot {
	grid-area: foot;
	display: grid;
	grid-template-columns: 58mm auto 1fr;
	align-items: center;
	gap: 7mm;
	padding-top: 5mm;
	border-top: 0.6mm solid var(--lnx-sheet-color);
}

.lnx-sheet--landscape .lnx-sheet__foot {
	grid-template-columns: 50mm auto 1fr;
	gap: 5mm;
}

.lnx-sheet:not(.lnx-sheet--qr) .lnx-sheet__qr {
	display: none;
}

.lnx-sheet:not(.lnx-sheet--qr) .lnx-sheet__foot {
	grid-template-columns: 58mm 1fr;
}

.lnx-sheet__label {
	margin: 0 0 1.6mm;
	font-size: 8.5pt;
	font-weight: 700;
	color: var(--lnx-sheet-muted);
}

.lnx-energy {
	display: grid;
	gap: 0.7mm;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lnx-energy__row {
	display: flex;
	align-items: center;
	gap: 1.4mm;
	height: 3.6mm;
}

.lnx-energy__bar {
	display: flex;
	align-items: center;
	width: calc(14mm + var(--lnx-i) * 3.4mm);
	height: 100%;
	padding-left: 1.2mm;
	clip-path: polygon(0 0, calc(100% - 1.6mm) 0, 100% 50%, calc(100% - 1.6mm) 100%, 0 100%);
	color: #fff;
	font-size: 7pt;
	font-weight: 800;
}

.lnx-energy__row--a .lnx-energy__bar { background: #00a651; }
.lnx-energy__row--b .lnx-energy__bar { background: #50b848; }
.lnx-energy__row--c .lnx-energy__bar { background: #bed630; color: #151a30; }
.lnx-energy__row--d .lnx-energy__bar { background: #fff200; color: #151a30; }
.lnx-energy__row--e .lnx-energy__bar { background: #fdb913; color: #151a30; }
.lnx-energy__row--f .lnx-energy__bar { background: #f37021; }
.lnx-energy__row--g .lnx-energy__bar { background: #ed1c24; }

.lnx-energy__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 6mm;
	height: 4.2mm;
	padding: 0 1.2mm;
	border-radius: 1mm;
	color: #fff;
	font-size: 8pt;
	font-weight: 800;
}

.lnx-energy__mark--use,
.lnx-energy__key--use {
	background: #151a30;
}

.lnx-energy__mark--co2,
.lnx-energy__key--co2 {
	background: #5a6078;
}

.lnx-energy__legend {
	display: flex;
	align-items: center;
	gap: 1.4mm;
	margin: 1.6mm 0 0;
	font-size: 7.5pt;
	font-weight: 600;
	color: var(--lnx-sheet-muted);
}

.lnx-energy__key {
	display: inline-block;
	width: 2.4mm;
	height: 2.4mm;
	border-radius: 0.6mm;
}

.lnx-energy__key--co2 {
	margin-left: 2mm;
}

.lnx-energy__status {
	margin: 0;
	font-size: 10pt;
	font-weight: 700;
}

.lnx-sheet__qr {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.6mm;
	width: 32mm;
	text-align: center;
}

.lnx-sheet__qr-code {
	display: block;
	width: 28mm;
	height: 28mm;
}

.lnx-sheet__qr-code svg {
	display: block;
	width: 100%;
	height: 100%;
}

.lnx-sheet__qr p {
	margin: 0;
	font-size: 7.5pt;
	font-weight: 600;
	line-height: 1.3;
	color: var(--lnx-sheet-muted);
}

.lnx-sheet__contact {
	min-width: 0;
	text-align: right;
}

.lnx-sheet__contact p {
	margin: 0.8mm 0 0;
	font-size: 9pt;
	color: var(--lnx-sheet-muted);
	overflow-wrap: anywhere;
}

.lnx-sheet__contact .lnx-sheet__phone {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 2mm;
	margin: 0 0 1mm;
	color: var(--lnx-sheet-color);
}

.lnx-sheet__phone strong {
	font-size: 19pt;
	font-weight: 800;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.lnx-sheet__contact .lnx-sheet__agency-name {
	font-size: 10.5pt;
	font-weight: 800;
	color: var(--lnx-sheet-fg);
}

.lnx-sheet__contact .lnx-sheet__ref {
	margin-top: 1.6mm;
	font-weight: 700;
	color: var(--lnx-sheet-fg);
}

/* ---------- Pantallas estrechas: la hoja se ve reducida ---------- */
@media screen and (max-width: 860px) {
	.lnx-print__stage {
		justify-content: flex-start;
	}
}

/* ---------- Impresión ---------- */
@page {
	size: A4 portrait;
	margin: 0;
}

@page lnx-landscape {
	size: A4 landscape;
	margin: 0;
}

@media print {
	body.lnx-print {
		background: #fff;
	}

	.lnx-print__bar {
		display: none;
	}

	.lnx-print__stage {
		display: block;
		padding: 0;
		overflow: visible;
	}

	.lnx-sheet {
		box-shadow: none;
		break-after: avoid;
		break-inside: avoid;
	}

	.lnx-sheet--landscape {
		page: lnx-landscape;
	}
}
