/* ================================================================================
	PROYECTO TEMPLATE - PLANTILLA DINÁMICA
	Basado en la misma identidad visual del sitio
   ================================================================================ */

:root {
	--bg: #f5f1ec;
	--surface: #ffffff;
	--surface-soft: #f8f6f3;
	--text: #161616;
	--muted: #6d6863;
	--red: #e21c1c;
	--red-dark: #be1515;
	--dark: #080808;
	--border: rgba(18, 18, 18, .1);
	--shadow: 0 20px 60px rgba(0, 0, 0, .12);
	--shadow-strong: 0 24px 70px rgba(0, 0, 0, .22);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--text);
	background:
		radial-gradient(circle at top left, rgba(226, 28, 28, .06), transparent 28%),
		linear-gradient(180deg, #faf8f5 0%, var(--bg) 100%);
	overflow-x: hidden;
}

img {
	max-width: 100%;
	display: block;
}

a {
	text-decoration: none;
	color: inherit;
}

.container {
	position: relative;
	z-index: 1;
}

.site-header {
	position: absolute;
	top: 1rem;
	inset: 0 0 auto 0;
	z-index: 40;
	pointer-events: none;
}

.navbar {
	padding: 0;
}

.navbar-shell {
	width: min(calc(100% - 2rem), 1320px);
	max-width: 1320px;
	margin: 0 auto;
	padding: .95rem 1.35rem;
	background: rgba(5, 5, 5, .58);
	backdrop-filter: blur(18px) saturate(120%);
	-webkit-backdrop-filter: blur(18px) saturate(120%);
	box-shadow: 0 18px 45px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .07);
	border-radius: 24px;
	pointer-events: auto;
}

.navbar-brand {
	padding: 0;
	margin: 0;
	flex-shrink: 0;
}

.navbar-brand img {
	height: 54px;
	width: auto;
}

.navbar-toggler {
	border: 0;
	box-shadow: none;
	padding: .45rem .65rem;
}

.navbar-toggler:focus {
	box-shadow: none;
}

.navbar-collapse {
	justify-content: flex-end;
}

.navbar-nav .nav-link {
	position: relative;
	color: rgba(255, 255, 255, .85);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: .75rem .9rem;
	transition: color .2s ease, opacity .2s ease;
}

.navbar-nav .nav-link::after {
	content: "";
	position: absolute;
	left: .72rem;
	right: .72rem;
	bottom: .4rem;
	height: 2px;
	background: var(--red);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .22s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
	transform: scaleX(1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
	color: var(--red);
}

.btn-header,
.btn-project-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	margin-left: 1rem;
	padding: .92rem 1.22rem;
	background: var(--red);
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
	border: 0;
	border-radius: 0;
	box-shadow: 0 16px 30px rgba(226, 28, 28, .24);
	transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn-header:hover,
.btn-project-cta:hover {
	transform: translateY(-2px);
	background: var(--red-dark);
	color: #fff;
	box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

.btn-project-cta--secondary {
	background: rgba(17, 17, 17, .92);
	box-shadow: none;
}

.btn-project-cta--secondary:hover {
	background: #0f0f0f;
}

.project-page {
	padding-bottom: 0;
}

.project-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: end;
	overflow: hidden;
	background: #080808;
	color: #fff;
}

.project-hero-media,
.project-hero-overlay {
	position: absolute;
	inset: 0;
}

.project-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.project-hero-overlay {
	background:
		linear-gradient(90deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .78) 40%, rgba(5, 5, 5, .45) 68%, rgba(5, 5, 5, .18) 100%),
		radial-gradient(circle at 16% 30%, rgba(255, 255, 255, .09), transparent 28%);
}

.project-hero-inner {
	position: relative;
	z-index: 2;
	padding-top: 9rem;
	padding-bottom: 4rem;
}

.project-kicker {
	margin: 0 0 .9rem;
	font-size: .74rem;
	font-weight: 800;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--red);
}

.project-kicker-hero {
	color: rgba(255, 255, 255, .88);
}

.project-hero h1,
.project-section-card h2,
.project-not-found-card h1,
.project-cta-card h2 {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-weight: 800;
	line-height: .96;
	letter-spacing: -.03em;
}

.project-hero h1 {
	font-size: clamp(3rem, 5.8vw, 5.8rem);
}

.project-hero-subtitle {
	max-width: 36rem;
	margin: 1rem 0 0;
	font-size: 1.08rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, .86);
}

.project-hero-card,
.project-section-card,
.project-not-found-card,
.project-cta-card {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid rgba(255, 255, 255, .6);
	box-shadow: var(--shadow);
	border-radius: 28px;
}

.project-hero-card {
	padding: 1.25rem 1.25rem 1.4rem;
	color: var(--text);
}

.project-hero-card-head {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	margin-bottom: 1rem;
}

.project-back-link {
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--text);
}

.project-hero-label {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}

.project-meta-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: .8rem;
	margin: 0;
}

.project-meta-item {
	padding: .9rem .95rem;
	border-radius: 20px;
	background: var(--surface-soft);
	border: 1px solid rgba(18, 18, 18, .07);
}

.project-meta-item span {
	display: block;
	font-size: .68rem;
	font-weight: 800;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--muted);
}

.project-meta-item strong {
	display: block;
	margin-top: .35rem;
	font-size: .96rem;
	line-height: 1.45;
	color: var(--text);
}

.project-content {
	padding: 4.6rem 0 4.2rem;
}

.project-section-card {
	padding: 1.5rem;
	margin-bottom: 1.1rem;
}

.section-head--compact {
	margin-bottom: 1rem;
}

.section-head--compact h2 {
	font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.project-lead {
	margin: .9rem 0 0;
	font-size: 1.08rem;
	line-height: 1.8;
	color: var(--text);
}

.project-rich-text {
	margin-top: 1rem;
}

.project-rich-text p {
	margin: 0 0 1rem;
	font-size: .98rem;
	line-height: 1.85;
	color: var(--muted);
}

.project-gallery-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.project-gallery-item {
	margin: 0;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: var(--shadow-soft);
	background: #fff;
}

.project-gallery-item img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	transition: transform .35s ease;
}

.project-gallery-item:hover img {
	transform: scale(1.03);
}

.project-gallery-item:first-child {
	grid-column: 1 / -1;
}

.project-sidebar {
	position: sticky;
	top: 1.25rem;
}

.project-features-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: .7rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.project-features-list li {
	position: relative;
	padding: .95rem 1rem .95rem 3rem;
	border-radius: 18px;
	background: var(--surface-soft);
	border: 1px solid rgba(18, 18, 18, .07);
	font-size: .95rem;
	line-height: 1.5;
	color: var(--text);
}

.project-features-list li::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 50%;
	width: .7rem;
	height: .7rem;
	border-radius: 50%;
	background: var(--red);
	transform: translateY(-50%);
	box-shadow: 0 0 0 6px rgba(226, 28, 28, .12);
}

.project-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .65rem;
	margin-top: .9rem;
}

.project-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: .65rem .9rem;
	border-radius: 999px;
	background: rgba(226, 28, 28, .08);
	border: 1px solid rgba(226, 28, 28, .12);
	font-size: .82rem;
	font-weight: 700;
	color: var(--red-dark);
}

.project-empty-text {
	font-size: .95rem;
	color: var(--muted);
}

.project-cta-strip {
	padding: 0 0 4.4rem;
}

.project-cta-card {
	padding: 1.8rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	align-items: center;
	background: linear-gradient(135deg, #111111 0%, #080808 100%);
	color: #fff;
	box-shadow: var(--shadow-strong);
}

.section-kicker-light {
	color: rgba(255, 255, 255, .86);
}

.project-cta-card h2 {
	font-size: clamp(2rem, 3vw, 3rem);
}

.project-cta-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: flex-end;
}

.project-not-found {
	padding: 7rem 0 5rem;
}

.project-not-found-card {
	max-width: 760px;
	margin: 0 auto;
	padding: 2.2rem;
	text-align: center;
}

.project-not-found-card h1 {
	font-size: clamp(2rem, 4vw, 3.4rem);
	color: var(--text);
}

.project-not-found-card p {
	margin: 1rem auto 0;
	max-width: 36rem;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--muted);
}

.site-footer {
	background: linear-gradient(180deg, #060606 0%, #080808 100%);
	color: rgba(255, 255, 255, .8);
	padding: 3.6rem 0 1.25rem;
}

.footer-top {
	padding-bottom: 1.55rem;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-logo {
	height: 58px;
	width: auto;
}

.site-footer p {
	margin: .9rem 0 0;
	font-size: .92rem;
	line-height: 1.62;
	color: rgba(255, 255, 255, .68);
}

.site-footer h4 {
	margin: 0 0 .9rem;
	font-size: .76rem;
	font-weight: 800;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: #fff;
}

.site-footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-footer li {
	margin-bottom: .56rem;
}

.site-footer a,
.site-footer span {
	font-size: .93rem;
	color: rgba(255, 255, 255, .72);
	transition: color .2s ease;
}

.site-footer a:hover {
	color: #fff;
}

.footer-socials {
	display: flex;
	gap: .65rem;
	margin-top: 1.1rem;
}

.footer-socials a,
.whatsapp-circle {
	width: 2.3rem;
	height: 2.3rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .24);
	color: #fff;
	transition: transform .2s ease, border-color .2s ease;
}

.footer-socials a:hover,
.whatsapp-circle:hover {
	transform: translateY(-2px);
	border-color: var(--red);
}

.footer-contact-list li {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
}

.footer-contact-list i {
	margin-top: .15rem;
	color: rgba(255, 255, 255, .57);
}

.whatsapp-circle {
	margin-top: .9rem;
	width: 3rem;
	height: 3rem;
	font-size: 1.1rem;
}

.footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding-top: 1rem;
	flex-wrap: wrap;
}

.footer-bottom p {
	margin: 0;
	font-size: .87rem;
}

.footer-legal {
	display: flex;
	align-items: center;
	gap: .75rem;
	flex-wrap: wrap;
}

.footer-legal span {
	display: block;
	width: 1px;
	height: 14px;
	background: rgba(255, 255, 255, .2);
}

@media (max-width: 991.98px) {
	.site-header {
		top: .65rem;
	}

	.navbar-shell {
		width: min(calc(100% - 1rem), 1320px);
		padding: .85rem 1rem;
		border-radius: 22px;
	}

	.navbar-collapse {
		padding: 1rem 0 .2rem;
		width: 100%;
	}

	.navbar-nav .nav-link {
		padding: .58rem 0;
	}

	.navbar-nav .nav-link::after {
		left: 0;
		right: 0;
		bottom: .18rem;
	}

	.btn-header,
	.btn-project-cta {
		width: 100%;
		margin: .7rem 0 0;
		justify-content: center;
	}

	.project-hero {
		min-height: 92vh;
	}

	.project-hero-inner {
		padding-top: 7.8rem;
		padding-bottom: 3.6rem;
	}

	.project-sidebar {
		position: static;
	}

	.project-cta-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.project-cta-actions {
		justify-content: flex-start;
		width: 100%;
	}
}

@media (max-width: 767.98px) {
	.site-header {
		top: .45rem;
	}

	.navbar-shell {
		width: min(calc(100% - .75rem), 1320px);
		padding: .75rem .85rem;
		border-radius: 20px;
}

	.navbar-brand img,
	.footer-logo {
		height: 46px;
	}

	.navbar-nav .nav-link {
		font-size: .76rem;
	}

	.project-hero h1 {
		font-size: clamp(2.6rem, 12vw, 4.4rem);
	}

	.project-hero-subtitle {
		font-size: 1rem;
	}

	.project-hero-inner {
		padding-top: 7rem;
	}

	.project-meta-grid,
	.project-gallery-grid {
		grid-template-columns: 1fr;
	}

	.project-gallery-item:first-child {
		grid-column: auto;
	}

	.project-content {
		padding: 4rem 0 3.5rem;
	}

	.project-section-card,
	.project-not-found-card,
	.project-cta-card {
		padding: 1.35rem;
		border-radius: 22px;
	}

	.project-cta-card h2,
	.project-section-card h2,
	.project-not-found-card h1 {
		font-size: 2rem;
	}

	.footer-bottom {
		align-items: flex-start;
	}
}

@media (max-width: 575.98px) {
	.site-header {
		top: .35rem;
	}

	.navbar-shell {
		width: min(calc(100% - .5rem), 1320px);
		padding: .68rem .75rem;
		border-radius: 18px;
	}

	.project-hero-inner {
		padding-top: 6.5rem;
	}

	.project-hero-card-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.project-gallery-item img {
		min-height: 180px;
	}

	.project-content {
		padding-top: 3.5rem;
	}

	.footer-bottom p,
	.footer-legal a,
	.site-footer span {
		font-size: .82rem;
	}
}
