/* =========================================================================
   Tello Motos — Autos usados (/autos/)
   Marco de foto uniforme: cualquier foto (celular, vertical u horizontal)
   se ve del mismo tamaño, con un fondo hecho con la misma foto desenfocada.
   ========================================================================= */

/* ---------- Marco de foto ---------- */
.tca-frame {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #15181d;
	isolation: isolate;
}
.tca-frame__bg {
	position: absolute;
	inset: -30px;
	background-size: cover;
	background-position: center;
	filter: blur(24px) brightness(.5) saturate(1.25);
	transform: scale(1.12);
	z-index: 0;
}
.tca-frame__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	object-position: center 58%;
	filter: saturate(1.08) contrast(1.05) brightness(1.02);
	transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.tca-frame__img.is-portrait {
	object-fit: contain;
	object-position: center;
	filter: saturate(1.08) contrast(1.05) brightness(1.02) drop-shadow(0 10px 24px rgba(0, 0, 0, .45));
}
.tca-frame::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .22) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .38) 100%),
		radial-gradient(120% 90% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .28) 100%);
}
.tca-frame--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #6b7280;
	background: linear-gradient(135deg, #1b1f26, #0f1115);
	font: 700 12px/1 'Barlow', Arial, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.tca-frame--empty svg { width: 86px; height: auto; opacity: .7; }
.tca-frame--empty::after { display: none; }

/* ---------- Tarjeta ---------- */
#tello-catalog-app .tca-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
#tello-catalog-app .tca-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 34px rgba(15, 23, 42, .12);
	border-color: #d4d7dd;
}
#tello-catalog-app .tca-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	height: auto;
	padding: 0;
	margin: 0;
	border: 0;
	background: #15181d;
	cursor: pointer;
	overflow: hidden;
}
#tello-catalog-app .tca-card:hover .tca-frame__img:not(.is-portrait) { transform: scale(1.045); }
#tello-catalog-app .tca-card__media .tca-frame { position: absolute; inset: 0; }
.tca-tag {
	position: absolute;
	top: 12px !important;
	left: 12px !important;
	right: auto !important;
	z-index: 3;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}
.tca-tag--reserved { background: #f59e0b !important; color: #111 !important; }
.tca-count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(10, 12, 15, .72);
	color: #fff;
	font: 700 12px/1 'Barlow', Arial, sans-serif;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.tca-count svg { width: 14px; height: 14px; }
#tello-catalog-app .tca-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0;
}
#tello-catalog-app .tca-card__title { margin: 2px 0 10px; }
#tello-catalog-app .tca-card__title button {
	all: unset;
	cursor: pointer;
	font-family: 'Barlow Condensed', Impact, sans-serif;
	font-weight: 800;
	font-size: 23px;
	line-height: 1.05;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: #111317;
}
#tello-catalog-app .tca-card__title button:hover { color: #e5000f; }
.tca-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 7px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
.tca-specs li {
	display: flex;
	align-items: center;
	gap: 7px;
	min-width: 0;
	padding: 7px 9px;
	border-radius: 7px;
	background: #f4f5f7;
	color: #2b2f36;
	font: 700 12.5px/1.15 'Barlow', Arial, sans-serif;
}
.tca-specs li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tca-specs svg { flex: 0 0 auto; width: 16px; height: 16px; color: #e5000f; }
.tca-feats {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}
.tca-feats li {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	color: #4b5260;
	font: 500 13.5px/1.3 'Barlow', Arial, sans-serif;
}
.tca-feats svg { flex: 0 0 auto; width: 15px; height: 15px; margin-top: 1px; color: #16a34a; }
.tca-price {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 4px 10px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #eceef1;
}
.tca-price strong { font: 800 22px/1 'Barlow Condensed', Impact, sans-serif; color: #111317; }
.tca-price span { font: 800 15px/1 'Barlow Condensed', Impact, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: #111317; }
.tca-price small { font: 600 12px/1 'Barlow', Arial, sans-serif; color: #16a34a; }
.tca-actions {
	display: grid;
	grid-template-columns: 1fr 1.25fr;
	gap: 8px;
	margin-top: 12px;
}
.tca-btn-ficha {
	min-height: 44px;
	padding: 0 10px;
	border: 1.5px solid #111317;
	border-radius: 6px;
	background: #fff;
	color: #111317;
	font: 800 13px/1 'Barlow', Arial, sans-serif;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.tca-btn-ficha:hover { background: #111317; color: #fff; }
#tello-catalog-app .tca-btn-ficha { white-space: nowrap; font-size: 12px; line-height: 1; padding: 0 6px; }
#tello-catalog-app .tca-actions .tca-btn-wa { white-space: nowrap; }
#tello-catalog-app .tca-actions .tca-btn-wa { margin: 0; width: 100%; min-height: 44px; }


.tca-detail .tca-tag { padding: 6px 10px; background: #e5000f; border-radius: 4px; color: #fff; font: 900 10px/1 'Barlow', Arial, sans-serif; letter-spacing: .04em; pointer-events: none; }
/* ---------- Ficha (ventana) ---------- */
html.tca-noscroll, html.tca-noscroll body { overflow: hidden !important; }
.tca-detail {
	position: fixed;
	inset: 0;
	z-index: 2147482000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: 'Barlow', Arial, sans-serif;
}
.tca-detail__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 7, 9, .78);
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	opacity: 0;
	transition: opacity .2s ease;
}
.tca-detail__panel {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(320px, 1fr);
	width: min(1220px, 100%);
	max-height: calc(100vh - 48px);
	overflow: hidden;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 40px 100px rgba(0, 0, 0, .5);
	opacity: 0;
	transform: translateY(16px) scale(.985);
	transition: opacity .22s ease, transform .22s ease;
}
.tca-detail.is-open .tca-detail__backdrop { opacity: 1; }
.tca-detail.is-open .tca-detail__panel { opacity: 1; transform: none; }
.tca-detail__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 6;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(17, 19, 23, .08);
	color: #111317;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.tca-detail__close:hover { background: #111317; color: #fff; }
.tca-detail__gallery {
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: #0c0e11;
}
.tca-stage {
	position: relative;
	flex: 1;
	min-height: 0;
	aspect-ratio: 4 / 3;
	background: #0c0e11;
	user-select: none;
}
.tca-stage__frame { position: absolute; inset: 0; cursor: zoom-in; }
.tca-frame--stage .tca-frame__img { object-fit: contain; object-position: center; }
.tca-frame--stage .tca-frame__img:not(.is-portrait) { filter: saturate(1.08) contrast(1.05) brightness(1.02) drop-shadow(0 12px 28px rgba(0, 0, 0, .4)); }
.tca-stage__nav {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111317;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
	transition: transform .15s ease, background .15s ease;
}
.tca-stage__nav:hover { transform: scale(1.06); background: #fff; }
.tca-stage__nav--prev { left: 14px; }
.tca-stage__nav--next { right: 14px; }
.tca-stage__counter,
.tca-stage__zoom {
	position: absolute;
	bottom: 14px;
	z-index: 4;
	padding: 6px 11px;
	border: 0;
	border-radius: 999px;
	background: rgba(10, 12, 15, .7);
	color: #fff;
	font: 700 12.5px/1 'Barlow', Arial, sans-serif;
}
.tca-stage__counter { left: 14px; }
.tca-stage__zoom { right: 14px; font-size: 15px; cursor: pointer; }
.tca-stage .tca-tag { top: 14px; left: 14px; }
.tca-stage.is-zoom {
	position: fixed;
	inset: 0;
	z-index: 2147482500;
	aspect-ratio: auto;
}
.tca-stage.is-zoom .tca-stage__frame { cursor: zoom-out; }
.tca-stage.is-zoom .tca-frame__bg { filter: blur(30px) brightness(.32) saturate(1.1); }
.tca-thumbs {
	display: flex;
	gap: 8px;
	padding: 10px;
	overflow-x: auto;
	scrollbar-width: thin;
	background: #0c0e11;
}
.tca-thumb {
	flex: 0 0 auto;
	width: 86px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 7px;
	overflow: hidden;
	background: #1a1d23;
	opacity: .62;
	cursor: pointer;
	transition: opacity .15s, border-color .15s;
}
.tca-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tca-thumb:hover { opacity: .9; }
.tca-thumb.is-active { opacity: 1; border-color: #e5000f; }
.tca-detail__info {
	min-width: 0;
	padding: 34px 32px 28px;
	overflow-y: auto;
	color: #111317;
}
.tca-detail__brand {
	color: #e5000f;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
}
.tca-detail__title {
	margin: 6px 44px 4px 0;
	padding: 0;
	font: italic 900 clamp(30px, 3.3vw, 42px)/1 'Barlow Condensed', Impact, sans-serif;
	letter-spacing: -.02em;
	text-transform: uppercase;
	color: #111317;
}
.tca-detail__sub { color: #5b6170; font-size: 15px; font-weight: 600; }
.tca-detail__price {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 18px 0 20px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #f4f5f7;
}
.tca-detail__price strong { font: 900 30px/1 'Barlow Condensed', Impact, sans-serif; color: #111317; }
.tca-detail__price strong.is-ask { font-size: 24px; text-transform: uppercase; }
.tca-detail__price span { display: flex; align-items: center; gap: 6px; color: #16a34a; font-size: 13px; font-weight: 700; }
.tca-detail__price svg { width: 15px; height: 15px; }
.tca-detail__specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin: 0 0 22px;
}
.tca-detail__specs > div {
	display: grid;
	grid-template-columns: 20px 1fr;
	grid-template-rows: auto auto;
	column-gap: 9px;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid #eceef1;
	border-radius: 9px;
}
.tca-detail__specs svg { grid-row: 1 / 3; width: 20px; height: 20px; color: #e5000f; }
.tca-detail__specs dt { margin: 0; color: #7a808c; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tca-detail__specs dd { margin: 1px 0 0; color: #111317; font-size: 15px; font-weight: 700; }
.tca-detail__h {
	margin: 0 0 10px;
	padding: 0;
	font: 800 15px/1.1 'Barlow Condensed', Impact, sans-serif;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #111317;
}
.tca-detail__feats {
	display: grid;
	grid-template-columns: 1fr;
	gap: 7px;
	margin: 0 0 22px;
	padding: 0;
	list-style: none;
}
.tca-detail__feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; color: #2b2f36; }
.tca-detail__feats svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 1px; color: #16a34a; }
.tca-detail__desc { margin: 0 0 22px; color: #3f4552; font-size: 15px; line-height: 1.55; }
.tca-detail__cta { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: sticky; bottom: -28px; padding: 12px 0 0; background: linear-gradient(rgba(255,255,255,0), #fff 30%); }
.tca-detail__wa {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 52px;
	padding: 0 16px;
	border: 0;
	border-radius: 8px;
	background: #25d366;
	color: #fff;
	font: 800 14px/1 'Barlow', Arial, sans-serif;
	letter-spacing: .04em;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(37, 211, 102, .3);
}
.tca-detail__wa span { white-space: nowrap; }
.tca-detail__wa:hover { background: #1ebe5b; }
.tca-detail__share {
	min-height: 52px;
	padding: 0 16px;
	border: 1.5px solid #d4d7dd;
	border-radius: 8px;
	background: #fff;
	color: #111317;
	font: 700 13px/1 'Barlow', Arial, sans-serif;
	cursor: pointer;
}
.tca-detail__share:hover { border-color: #111317; }

@media (max-width: 900px) {
	.tca-detail { padding: 0; align-items: stretch; }
	.tca-detail__panel {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
		width: 100%;
		max-height: none;
		height: 100%;
		border-radius: 0;
		overflow-y: auto;
	}
	.tca-detail__info { overflow: visible; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); }
	.tca-detail__close { position: fixed; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
	.tca-stage { flex: none; aspect-ratio: 4 / 3; }
	.tca-stage__nav { width: 38px; height: 38px; margin-top: -19px; font-size: 24px; }
	.tca-thumb { width: 70px; height: 52px; }
	.tca-detail__cta { bottom: calc(-24px - env(safe-area-inset-bottom)); }
}
@media (max-width: 480px) {
	.tca-detail__specs { grid-template-columns: 1fr 1fr; gap: 6px; }
	.tca-detail__specs > div { padding: 8px 9px; }
	.tca-detail__specs dd { font-size: 14px; }
	#tello-catalog-app .tca-card__title button { font-size: 21px; }
	.tca-detail__wa { font-size: 12.5px; padding: 0 10px; gap: 7px; }
	.tca-detail__share { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.tca-frame__img, .tca-detail__panel, .tca-detail__backdrop, #tello-catalog-app .tca-card { transition: none !important; }
}
