/**
 * Viviendax · construction.css
 *
 * Single de constructora (/constructora/{slug}/) — perfil público.
 * Depende de home.css (.vx-home shell) y de los tokens de style.css.
 */

.vx-construction-shell {
	padding-bottom: 60px;
}

/* ----- Breadcrumbs ----- */
.vx-construction-shell .vx-breadcrumbs {
	font-size: 13px;
	color: var(--muted);
	margin: 18px auto;
}
.vx-construction-shell .vx-breadcrumbs a {
	color: var(--muted);
	text-decoration: none;
	transition: color .15s;
}
.vx-construction-shell .vx-breadcrumbs a:hover {
	color: var(--primary-dark);
}
.vx-construction-shell .vx-breadcrumbs .sep {
	margin: 0 6px;
	color: var(--border);
}
.vx-construction-shell .vx-breadcrumbs .current {
	color: var(--text);
}

/* ============================================================================
   HERO
   ============================================================================ */
.vx-cx-hero {
	position: relative;
	overflow: hidden;
	margin-bottom: 32px;
	background: var(--background-soft);
	border-bottom: 1px solid var(--border);
}
.vx-cx-hero.has-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--cx-cover);
	background-size: cover;
	background-position: center;
	filter: blur(0);
}
.vx-cx-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15,23,42,.25) 0%, rgba(15,23,42,.85) 100%);
}
.vx-cx-hero:not(.has-cover) .vx-cx-hero-overlay {
	background: linear-gradient(135deg, rgba(15,23,42,.96) 0%, rgba(46,125,50,.85) 100%);
}
.vx-cx-hero-in {
	position: relative;
	display: flex;
	align-items: center;
	gap: 28px;
	padding: 64px 24px 56px;
	color: #fff;
}
.vx-cx-logo {
	flex: none;
	width: 120px;
	height: 120px;
	border-radius: 22px;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 12px 32px -10px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.08);
	overflow: hidden;
}
.vx-cx-logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 10px;
}
.vx-cx-logo .ico {
	width: 56px;
	height: 56px;
	color: var(--primary);
}
.vx-cx-hero-body {
	flex: 1;
	min-width: 0;
}
.vx-cx-eyebrow {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255,255,255,.7);
}
.vx-cx-title {
	margin: 0 0 12px;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}
.vx-cx-meta {
	margin: 0;
	font-size: 15px;
	color: rgba(255,255,255,.85);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.vx-cx-meta .dot {
	color: rgba(255,255,255,.4);
}

/* Badge "Verificada" sobre fondo oscuro */
.vx-cx-title .vx-badge-verified {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--primary-light);
	color: var(--primary-dark);
	border: 1px solid var(--primary-border);
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1;
	white-space: nowrap;
}
.vx-cx-title .vx-badge-verified .ico {
	width: 14px;
	height: 14px;
}

/* ============================================================================
   BODY GRID · sidebar info + contenido
   ============================================================================ */
.vx-cx-body {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 36px;
	align-items: flex-start;
}

/* Sidebar */
.vx-cx-side {
	position: sticky;
	top: 24px;
}
.vx-cx-info {
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 12px 30px -16px rgba(15,23,42,.10);
}
.vx-cx-info-title {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}
.vx-cx-info-list {
	margin: 0 0 18px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.vx-cx-info-list dt {
	font-size: 12px;
	color: var(--muted);
	margin: 0;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.vx-cx-info-list dd {
	margin: 2px 0 8px;
	font-size: 15px;
	color: var(--text);
}
.vx-cx-info-list a {
	color: var(--primary-dark);
	text-decoration: none;
}
.vx-cx-info-list a:hover {
	text-decoration: underline;
}
.vx-cx-cta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.vx-cx-cta .btn {
	flex: 1 1 auto;
	justify-content: center;
}

/* Contenido */
.vx-cx-section {
	margin-bottom: 36px;
}
.vx-cx-section h2 {
	margin: 0 0 18px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.01em;
	color: var(--text);
}
.vx-cx-prose {
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
}
.vx-cx-prose p {
	margin: 0 0 14px;
}

/* ----- Grid de proyectos ----- */
.vx-cx-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
}
.vx-cx-card {
	display: block;
	background: var(--background);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .15s, box-shadow .2s, border-color .15s;
}
.vx-cx-card:hover {
	transform: translateY(-2px);
	border-color: var(--primary-border);
	box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 36px -20px rgba(15,23,42,.18);
}
.vx-cx-card-media {
	aspect-ratio: 16 / 10;
	background-color: var(--primary-light);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}
.vx-cx-card-placeholder {
	width: 48px;
	height: 48px;
	color: var(--primary);
	opacity: .5;
}
.vx-cx-card-body {
	padding: 16px 18px 18px;
}
.vx-cx-card-body h3 {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.01em;
	color: var(--text);
}
.vx-cx-card-loc {
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--muted);
	display: flex;
	align-items: center;
	gap: 4px;
}
.vx-cx-card-loc .ico {
	width: 14px;
	height: 14px;
}
.vx-cx-card-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	font-size: 13px;
	color: var(--muted);
}
.vx-cx-card-stats strong {
	color: var(--text);
	font-weight: 600;
}
.vx-cx-card-price {
	color: var(--primary-dark);
	font-weight: 600;
	font-family: var(--mono);
	font-size: 13px;
}

/* ----- Empty state ----- */
.vx-cx-empty {
	background: var(--background-soft);
	border: 1px dashed var(--border);
	border-radius: 16px;
	padding: 48px 24px;
	text-align: center;
	color: var(--muted);
}
.vx-cx-empty .ico {
	width: 40px;
	height: 40px;
	color: var(--primary);
	opacity: .4;
	margin: 0 auto 12px;
	display: block;
}
.vx-cx-cta .btn { font-size: 14px; padding: 9px 14px; }
.vx-cx-empty p {
	margin: 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 900px) {
	.vx-cx-body {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.vx-cx-side {
		position: static;
	}
	.vx-cx-hero-in {
		flex-direction: column;
		align-items: flex-start;
		text-align: left;
		padding: 48px 24px 40px;
	}
	.vx-cx-logo {
		width: 90px;
		height: 90px;
		border-radius: 18px;
	}
}

@media (max-width: 560px) {
	.vx-cx-title {
		font-size: 24px;
	}
	.vx-cx-section h2 {
		font-size: 19px;
	}
}
