/* Tibor - ficha y calculadora Lonas. Lenguaje visual alineado con Roll Up y Stickers. */
.tibor-lonas-calc {
	--tibor-brand: #0b3989;
	--tibor-brand-hover: #012b4e;
	--tibor-brand-soft: rgba(11, 57, 137, .08);
	--tibor-brand-line: rgba(11, 57, 137, .22);
	--tlc-border: #e2e8f0;
	--tlc-muted: #667a8a;
	--tlc-soft: #f5f8fb;
	--tlc-text: #1f2d3a;
	--tlc-danger: #b42318;
	font-family: 'Inter', Arial, sans-serif;
	color: var(--tlc-text);
	max-width: 520px;
}


.tlc-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.tlc-head-ic {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--tibor-brand-soft);
	color: var(--tibor-brand);
	flex: none;
}

.tlc-head svg,
.tlc-segment svg,
.tlc-add svg,
.tlc-drop svg,
.tlc-sticky svg {
	width: 20px;
	height: 20px;
}

.tlc-head h2 {
	margin: 0;
	color: var(--tibor-brand);
	font-family: 'Sora', 'Inter', Arial, sans-serif;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
}

.tlc-head p {
	margin: 3px 0 0;
	color: var(--tlc-muted);
	font-size: 14px;
	line-height: 1.35;
}

.tlc-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.tlc-field {
	margin-bottom: 16px;
}

.tlc-field > label,
.tlc-ollados-row > label {
	display: block;
	margin-bottom: 7px;
	color: var(--tlc-muted);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tlc-input {
	display: flex;
	align-items: center;
	min-height: 44px;
	border: 1.5px solid var(--tlc-border);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}

.tlc-input input {
	width: 100%;
	min-width: 0;
	min-height: 44px;
	border: 0;
	background: #fff;
	color: var(--tibor-brand);
	font-size: 15px;
	font-weight: 700;
	padding: 0 12px;
}

.tlc-input span {
	align-self: stretch;
	display: inline-flex;
	align-items: center;
	border-left: 1.5px solid var(--tlc-border);
	color: var(--tlc-muted);
	font-size: 13px;
	font-weight: 800;
	padding: 0 12px;
}

.tlc-segment {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tlc-plazo {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tlc-segment button,
.tlc-card,
.tlc-qty-row,
.tlc-qty-toggle {
	font-family: inherit;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s, box-shadow .15s, transform .06s;
}

.tlc-segment button {
	flex: 1 1 auto;
	min-width: 120px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 11px 14px;
	border: 1.5px solid var(--tlc-border);
	border-radius: 10px;
	background: #fff;
	color: #33475b;
	font-size: 14px;
	font-weight: 700;
}

.tlc-segment img {
	width: 24px;
	height: 24px;
	object-fit: contain;
}

.tlc-segment button:hover,
.tlc-card:hover,
.tlc-qty-row:hover {
	border-color: var(--tibor-brand);
}

.tlc-segment button:active,
.tlc-card:active,
.tlc-qty-row:active,
.tlc-add:active:not(:disabled),
.tlc-browse:active {
	transform: translateY(1px);
}

.tlc-segment button[aria-pressed="true"],
.tlc-card[aria-pressed="true"] {
	border-color: var(--tibor-brand);
	background: var(--tibor-brand-soft);
	color: var(--tibor-brand);
	box-shadow: inset 0 0 0 1px var(--tibor-brand);
}

.tlc-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.tlc-card-grid.tlc-one {
	grid-template-columns: 1fr;
}

/* Tipos de lona como 360imprimir: rejilla de tarjetas con la imagen arriba, nombre, gramaje y
   la diferencia de precio con el tipo elegido. */
.tlc-card-grid.tlc-material {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.tlc-material .tlc-card {
	min-height: 0;
	gap: 5px;
}

.tlc-material .tlc-card img {
	width: 100%;
	height: 88px;
	margin-bottom: 4px;
	border-radius: 8px;
	background: var(--tlc-soft);
	object-fit: contain;
}

.tlc-card-delta {
	display: block;
	min-height: 17px;
	margin-top: auto;
	color: var(--tibor-brand);
	font-size: 13px;
	font-style: normal;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.tlc-card-delta.is-down {
	color: #1f7a4d;
}

/* Opción que el tipo de lona elegido no admite (p. ej. un refuerzo). */
.tlc-card[hidden] {
	display: none;
}

/* Fotos puestas en el producto en lugar de los iconos: llenan su hueco. */
.tlc-card img.is-foto {
	width: 100%;
	height: 88px;
	border-radius: 8px;
	object-fit: cover;
}

.tlc-segment img.is-foto {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	object-fit: cover;
}

@media (max-width: 520px) {
	.tlc-card-grid.tlc-material {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.tlc-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 7px;
	min-height: 112px;
	padding: 12px;
	border: 1.5px solid var(--tlc-border);
	border-radius: 12px;
	background: #fff;
	color: #33475b;
	text-align: left;
}

.tlc-card img {
	width: 82px;
	height: 56px;
	object-fit: contain;
}

.tlc-card span {
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
}

.tlc-card small,
.tlc-ollados-row small {
	display: block;
	color: var(--tlc-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

/* En Vaina la imagen explica el acabado: se muestra completa y con buen contraste. */
.tlc-vaina .tlc-card {
	position: relative;
	gap: 8px;
	min-height: 132px;
	padding: 9px 10px 11px;
	overflow: hidden;
}

.tlc-vaina .tlc-card img,
.tlc-vaina .tlc-card img.is-foto {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 88px;
	margin: 0;
	padding: 6px 10px;
	border-radius: 8px;
	background: #f5f8fb;
	object-fit: contain;
}

.tlc-vaina .tlc-card > span {
	padding: 0 2px;
}

.tlc-vaina .tlc-card[aria-pressed="true"]::after {
	content: "\2713";
	position: absolute;
	top: 15px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tibor-brand);
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(11, 57, 137, .22);
}

.tlc-vaina .tlc-card:hover img {
	background: #eef5fb;
}

.tlc-vaina .tlc-card:focus-visible {
	outline: 3px solid rgba(11, 57, 137, .24);
	outline-offset: 2px;
}

.tlc-vaina .tlc-card[aria-pressed="true"] img {
	background: #edf4ff;
}

.tlc-ollados-row {
	margin-top: 10px;
	padding: 12px;
	border: 1px solid var(--tlc-border);
	border-radius: 12px;
	background: var(--tlc-soft);
}

.tlc-ollados-row .tlc-input {
	background: #fff;
}

.tlc-qty-table {
	border: 1px solid var(--tlc-border);
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fbfe 0%, #fff 44%);
	padding: 10px;
	box-shadow: 0 10px 26px rgba(11, 57, 137, .07);
}

.tlc-qty-head,
.tlc-qty-row {
	display: grid;
	grid-template-columns: minmax(124px, 1.1fr) minmax(92px, .85fr) minmax(92px, .85fr);
	align-items: center;
	gap: 10px;
	width: 100%;
}

.tlc-qty-head {
	min-height: 34px;
	padding: 0 12px 6px;
	color: #7b8ba0;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tlc-qty-row {
	min-height: 54px;
	margin-top: 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: #fff;
	padding: 0 12px;
	text-align: left;
	box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.tlc-qty-row.is-selected {
	border-color: var(--tibor-brand);
	background: var(--tibor-brand-soft);
	box-shadow: inset 4px 0 0 var(--tibor-brand), 0 8px 18px rgba(11, 57, 137, .10);
}

.tlc-qty-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--tlc-text);
	font-size: 15px;
	font-weight: 900;
	line-height: 1.1;
}

.tlc-qty-label em {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 18px;
	padding: 0 7px;
	border-radius: 999px;
	background: var(--tibor-brand);
	color: #fff;
	font-size: 9px;
	font-style: normal;
	font-weight: 900;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tlc-qty-unit,
.tlc-qty-total {
	color: var(--tibor-brand);
	font-size: 15px;
	font-weight: 900;
	text-align: right;
	white-space: nowrap;
}

.tlc-qty-total {
	font-size: 16px;
}

.tlc-qty-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 42px;
	margin-top: 8px;
	border: 0;
	border-radius: 10px;
	background: #eef4f9;
	color: var(--tibor-brand);
	font-size: 13px;
	font-weight: 800;
	padding: 0 14px;
	text-align: left;
}

.tlc-qty-toggle span {
	color: var(--tibor-brand);
	font-size: 18px;
	line-height: 1;
}

.tibor-lonas-calc.is-qty-collapsed .tlc-qty-row:nth-child(n+6) {
	display: none;
}

.tibor-lonas-calc.is-qty-collapsed .tlc-qty-toggle span {
	transform: rotate(180deg);
}

.tlc-upload {
	margin-top: 20px;
}

.tlc-steps {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	margin: 2px 0 14px;
	color: #667a8a;
}

.tlc-steps i {
	display: block;
	height: 2px;
	border-radius: 999px;
	background: #c9d9ec;
}

.tlc-step {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.tlc-step span {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	flex: none;
	border-radius: 50%;
	border: 1px solid #c9d9ec;
	background: #eef4f9;
	color: #6b7b95;
	font-size: 14px;
	font-weight: 900;
}

.tlc-step b {
	min-width: 0;
	color: #667a8a;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.25;
	white-space: normal;
}

.tlc-step.is-active span {
	border-color: var(--tibor-brand);
	background: #fff;
	color: var(--tibor-brand);
	box-shadow: 0 0 0 3px var(--tibor-brand-soft);
}

.tlc-step.is-active b {
	color: var(--tibor-brand);
}

.tlc-drop {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 188px;
	border: 1.5px dashed #cbd8e7;
	border-radius: 14px;
	background:
		linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0)),
		var(--tlc-soft);
	padding: 28px 22px 30px;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
}

.tlc-drop:hover,
.tlc-drop.is-drag {
	border-color: var(--tibor-brand);
	background:
		linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.18)),
		var(--tibor-brand-soft);
	box-shadow: 0 12px 28px rgba(11, 57, 137, .08);
}

.tlc-drop-ic {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: #fff;
	color: var(--tibor-brand);
	margin-bottom: 14px;
	box-shadow: 0 8px 22px rgba(11, 57, 137, .14);
}

.tibor-lonas-calc .tlc-drop-ic svg {
	display: block !important;
	width: 28px !important;
	height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
}

.tlc-drop-main {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 100%;
}

.tlc-drop-main b {
	color: var(--tlc-text);
	font-size: 16px;
	font-weight: 900;
	line-height: 1.25;
}

.tlc-drop-main span,
.tlc-drop small {
	color: var(--tlc-muted);
	font-size: 13px;
}

.tlc-drop small {
	display: block;
	margin-top: 14px;
	font-weight: 700;
}

.tlc-browse {
	border: 0;
	border-radius: 999px;
	background: var(--tibor-brand);
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	padding: 12px 22px;
	box-shadow: 0 8px 18px rgba(11, 57, 137, .18);
	transition: background .12s, transform .06s, box-shadow .12s;
}

.tlc-browse:hover {
	background: var(--tibor-brand-hover);
	box-shadow: 0 10px 22px rgba(11, 57, 137, .22);
}

.tlc-files {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 10px 0 0;
	padding: 0;
}

.tlc-file {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid var(--tlc-border);
	border-radius: 10px;
	background: #f8fbfe;
}

.tlc-file-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: var(--tibor-brand);
	font-size: 13px;
	font-weight: 800;
}

.tlc-file button {
	border: 0;
	background: transparent;
	color: var(--tlc-danger);
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	padding: 4px 6px;
	border-radius: 6px;
}

.tlc-file button:hover {
	background: #fbeae7;
}

.tlc-price {
	margin: 18px 0 14px;
	padding: 14px 16px;
	background: var(--tlc-soft);
	border: 1px solid var(--tlc-border);
	border-radius: 12px;
}

.tlc-price > div:first-child {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.tlc-price span {
	color: var(--tlc-muted);
	font-size: 13px;
	font-weight: 700;
}

.tlc-total {
	color: var(--tibor-brand);
	font-size: 28px;
	font-weight: 900;
	line-height: 1;
	white-space: nowrap;
}

.tlc-meta {
	display: none;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.tlc-meta span {
	border: 1px solid var(--tlc-border);
	border-radius: 999px;
	background: #fff;
	color: var(--tibor-brand);
	padding: 5px 9px;
}

.tlc-add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 50px;
	padding: 15px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--tibor-brand);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	cursor: pointer;
	transition: background .2s, opacity .2s, transform .06s;
}

.tlc-add:hover:not(:disabled) {
	background: var(--tibor-brand-hover);
}

.tlc-add:disabled {
	opacity: .6;
	background: var(--tibor-brand);
	cursor: not-allowed;
}

.tlc-msg {
	min-height: 20px;
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 800;
	color: var(--tlc-danger);
}

.tlc-msg.is-ok,
.tlc-msg.is-info {
	color: var(--tibor-brand);
}

.tibor-lonas-product .summary {
	position: sticky;
	top: 18px;
	align-self: start;
}

body.tibor-lonas-product .tlc-sticky {
	position: fixed !important;
	inset: auto 0 0 0;
	z-index: 999;
	isolation: isolate;
	background: #fff;
}

body.tibor-lonas-product {
	padding-bottom: 0;
}

body.tibor-lonas-product .t26-chrome.t26-footer {
	padding-bottom: 96px;
}

body.tibor-lonas-product .tlc-sticky .tvc-add {
	border-radius: 999px;
	background: var(--tibor-brand, #0b3989);
	color: #fff;
	min-width: 220px;
}

body.tibor-lonas-product .tlc-sticky .tvc-add:hover:not(:disabled) {
	background: var(--tibor-brand-hover, #012b4e);
}

@media (max-width: 980px) {
	body.tibor-lonas-product.tibor-mobile-menu-open .tlc-sticky {
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
	}
}

@media (max-width: 780px) {
	.tibor-lonas-calc {
		max-width: 100%;
	}

	body.tibor-lonas-product .t26-chrome.t26-footer {
		padding-bottom: calc(80px + env(safe-area-inset-bottom));
	}

	body.tibor-lonas-product .tlc-sticky {
		padding-bottom: env(safe-area-inset-bottom);
	}

	body.tibor-lonas-product .tlc-sticky .tvc-sticky-inner {
		width: 100%;
		min-height: 64px;
		padding: 8px 16px;
		gap: 12px;
	}

	body.tibor-lonas-product .tlc-sticky .tvc-add {
		flex: 1 1 220px;
		width: auto;
		min-width: 0;
		max-width: 250px;
		margin-left: auto;
		padding: 12px 16px;
		white-space: nowrap;
	}

	.tlc-grid,
	.tlc-plazo,
	.tlc-card-grid {
		grid-template-columns: 1fr;
	}

	.tlc-qty-head,
	.tlc-qty-row {
		grid-template-columns: minmax(100px, 1fr) minmax(74px, .75fr) minmax(74px, .75fr);
		gap: 8px;
		padding-left: 14px;
		padding-right: 14px;
	}

	.tlc-qty-head {
		font-size: 10px;
	}

	.tlc-qty-label {
		align-items: flex-start;
		flex-direction: column;
		gap: 4px;
		font-size: 15px;
	}

	.tlc-qty-unit,
	.tlc-qty-total {
		font-size: 14px;
	}

	.tlc-qty-toggle {
		padding-left: 14px;
		padding-right: 14px;
	}

	.tlc-steps {
		grid-template-columns: 1fr 18px 1fr 18px 1fr;
		gap: 5px;
	}

	.tlc-step {
		align-items: center;
		flex-direction: column;
		text-align: center;
	}

	.tlc-step span {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.tlc-step b {
		font-size: 11px;
	}

	.tlc-drop {
		min-height: 174px;
		padding: 24px 14px 26px;
	}

	.tlc-drop-main {
		flex-direction: column;
	}

	.tlc-price > div:first-child {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tibor-lonas-calc *,
	.tlc-add {
		transition: none !important;
	}
}


/* ── Fecha de entrega dentro del chip de plazo (19 ago 2026) ──────────────────
   El nombre arriba y el rango debajo, para que se vea qué se está eligiendo.
   Va al FINAL del archivo y sin !important: gana por orden. Borrar este bloque
   entero lo deja exactamente como estaba. */
.tlc-plazo button > span {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	line-height: 1.2;
}
.tlc-plazo button small {
	display: block;
	margin-top: 2px;
	font-size: 11.5px;
	font-weight: 500;
	opacity: .72;
	white-space: nowrap;
}

/* Desglose fiscal de Gran formato, igual que en Stickers. */
.tlc-tax-breakdown { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid var(--tlc-border); }
.tlc-tax-breakdown > div,
.tlc-price-total { display: flex; justify-content: space-between; gap: 12px; }
.tlc-tax-breakdown > div { padding: 2px 0; }
.tlc-tax-breakdown dt,
.tlc-tax-breakdown dd { margin: 0; color: var(--tlc-muted); font-size: 14px; font-weight: 600; }
.tlc-tax-breakdown dd { color: var(--tlc-navy); white-space: nowrap; }
.tlc-price-total { align-items: baseline; }
@media (max-width: 520px) { .tlc-price-total { align-items: flex-start; flex-direction: column; } }
