/* ================================================================================
   PROYECTOS - ESTILO CORPORATIVO CON FILTRADO MIXITUP
   Basado en la misma estética del sitio: negro, blanco y rojo corporativo
   ================================================================================ */

: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;
}


/* ================================================================================
   HEADER / NAVBAR
   ================================================================================ */

.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 img {
	height: 54px;
	width: auto;
}

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

.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 {
	display: inline-flex;
	align-items: 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 {
	transform: translateY(-2px);
	background: var(--red-dark);
	color: #fff;
	box-shadow: 0 18px 36px rgba(0, 0, 0, .24);
}

/* ================================================================================
   HERO
   ================================================================================ */

.hero-projects {
	position: relative;
	min-height: 540px;
	display: flex;
	align-items: end;
	background:
		linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .84) 36%, rgba(0, 0, 0, .55) 60%, rgba(0, 0, 0, .22) 80%, rgba(0, 0, 0, .05) 100%),
		url("https://santanareformas.s3.us-east-2.amazonaws.com/img/inicio/hero/hero.png") center center / cover no-repeat;
	overflow: hidden;
}

.hero-projects::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .34) 0%, rgba(0, 0, 0, 0) 32%),
		radial-gradient(circle at 18% 30%, rgba(255, 255, 255, .09), transparent 26%);
	pointer-events: none;
}

.hero-projects::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 120px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(245, 241, 236, .94) 100%);
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 2;
	padding-top: 10rem;
	padding-bottom: 3.7rem;
}

.hero-projects h1 {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(3.2rem, 5.2vw, 5.6rem);
	line-height: .95;
	font-weight: 700;
	letter-spacing: -.03em;
	color: #fff;
}

.hero-projects p {
	margin: 1.1rem 0 0;
	font-size: 1.07rem;
	line-height: 1.7;
	font-weight: 500;
	color: rgba(255, 255, 255, .86);
	max-width: 26rem;
}

.hero-line {
	display: inline-block;
	width: 44px;
	height: 2px;
	background: var(--red);
	margin-top: 1.25rem;
}

/* ================================================================================
   FILTERS
   ================================================================================ */

.projects-filters-wrap {
	padding: 2.2rem 0 1.1rem;
	background: transparent;
}

.projects-filters {
	display: flex;
	justify-content: center;
}

.filter-group {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .75rem .95rem;
	padding: .25rem 0;
}

.filter-btn {
	border: 0;
	background: transparent;
	color: #666;
	font-size: .92rem;
	font-weight: 600;
	padding: .7rem 1.1rem;
	border-radius: 999px;
	transition: background-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.filter-btn:hover {
	transform: translateY(-1px);
	color: var(--text);
}

.filter-btn.mixitup-control-active {
	background: var(--red);
	color: #fff;
	box-shadow: 0 14px 26px rgba(226, 28, 28, .24);
}

/* ================================================================================
   PROJECT GRID
   ================================================================================ */

.projects-section {
	padding: 1.1rem 0 4.8rem;
}

.mix-grid {
	align-items: stretch;
}

.mix-grid .mix {
	will-change: transform, opacity;
}

.project-card,
.project-cta-card {
	height: 100%;
	background: var(--surface);
	border: 1px solid rgba(18, 18, 18, .08);
	border-radius: 16px;
	box-shadow: var(--shadow);
	overflow: hidden;
}

.project-card {
	transition: transform .25s ease, box-shadow .25s ease;
}

.mixitup-container-ready {
	min-height: 1px;
}

.project-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 22px 50px rgba(0, 0, 0, .13);
}

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

.project-gallery img {
	width: 100%;
	height: 190px;
	object-fit: cover;
	border-radius: 10px;
	transition: transform .35s ease, filter .35s ease;
}

.project-card:hover .project-gallery img {
	transform: scale(1.015);
	filter: saturate(1.03);
}

.project-body {
	padding: 1rem 1rem 1.15rem;
}

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

.project-copy {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: flex-end;
}

.project-copy h3 {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.35rem;
	line-height: 1.08;
	color: #232323;
}

.project-copy p {
	margin: .65rem 0 0;
	font-size: .92rem;
	line-height: 1.62;
	color: var(--muted);
	max-width: 29ch;
}

.project-arrow {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.35rem;
	height: 2.35rem;
	border-radius: 50%;
	color: var(--red);
	background: rgba(226, 28, 28, .06);
	transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.project-arrow:hover {
	transform: translateX(2px);
	background: rgba(226, 28, 28, .1);
}

.project-cta-shell {
	display: flex;
}

.project-cta-card {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: 2.2rem 2rem;
	background:
		radial-gradient(circle at top, rgba(226, 28, 28, .08), transparent 36%),
		linear-gradient(180deg, #fff 0%, #fbfaf8 100%);
}

.project-cta-logo {
	display: block;
	padding: .85rem 1rem;
	background: linear-gradient(135deg, rgba(10, 10, 10, .96) 0%, rgba(36, 36, 36, .94) 50%, rgba(10, 10, 10, .98) 100%);
	border-radius: 16px;
	border: 1px solid rgba(255, 255, 255, .08);
	width: 15em;
	height: auto;
	margin-bottom: 1.1rem;
	box-shadow:
		0 22px 50px rgba(0, 0, 0, .28),
		0 2px 0 rgba(255, 255, 255, .04) inset,
		0 0 0 1px rgba(226, 28, 28, .08);
	transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.project-cta-logo:hover {
	transform: translateY(-2px);
	filter: saturate(1.04);
	box-shadow:
		0 28px 60px rgba(0, 0, 0, .32),
		0 2px 0 rgba(255, 255, 255, .05) inset,
		0 0 0 1px rgba(226, 28, 28, .12);
}

.project-cta-card h3 {
	margin: 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.7rem;
	line-height: 1.06;
	color: #1f1f1f;
}

.project-cta-card p {
	margin: .9rem 0 0;
	max-width: 19rem;
	font-size: .98rem;
	line-height: 1.7;
	color: var(--muted);
}

.btn-project-cta {
	display: inline-flex;
	align-items: center;
	gap: .65rem;
	margin-top: 1.4rem;
	padding: 1rem 1.45rem;
	background: var(--red);
	color: #fff;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
	box-shadow: 0 16px 30px rgba(226, 28, 28, .24);
	transition: transform .2s ease, background-color .2s ease;
}

.btn-project-cta:hover {
	transform: translateY(-2px);
	background: var(--red-dark);
	color: #fff;
}

/* Footer */
.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 var(--footer-border);
}

.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);
}

/* ================================================================================
   RESPONSIVE
   ================================================================================ */

@media (max-width: 1199.98px) {
	.hero-projects {
		min-height: 500px;
	}

	.project-gallery img {
		height: 175px;
	}

	.project-copy h3 {
		font-size: 1.2rem;
	}
}

@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%;
	}

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

	.hero-content {
		padding-top: 9rem;
	}

	.hero-projects p {
		font-size: 1rem;
	}

	.projects-filters-wrap {
		padding-top: 1.9rem;
	}

	.project-cta-card {
		min-height: 340px;
	}
}

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

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

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

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

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

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

	.hero-projects {
		min-height: 470px;
		background-position: 60% center;
	}

	.hero-content {
		padding-top: 7.9rem;
	}

	.projects-filters-wrap {
		padding: 1.6rem 0 .95rem;
	}

	.filter-group {
		justify-content: flex-start;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: .4rem;
		scrollbar-width: none;
	}

	.filter-group::-webkit-scrollbar {
		display: none;
	}

	.filter-btn {
		white-space: nowrap;
	}

	.project-gallery {
		padding: .8rem .8rem 0;
	}

	.project-gallery img {
		height: 155px;
	}

	.project-body {
		padding: .95rem .9rem 1rem;
	}

	.project-cta-card {
		padding: 2rem 1.4rem;
		min-height: 300px;
	}

	.project-cta-card h3 {
		font-size: 1.5rem;
	}

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

@media (max-width: 575.98px) {
	.hero-projects h1 {
		font-size: 2.95rem;
	}

	.hero-projects p {
		font-size: .96rem;
	}

	.project-copy {
		align-items: flex-start;
	}

	.project-copy p {
		max-width: none;
	}

	.project-arrow {
		width: 2.1rem;
		height: 2.1rem;
	}

	.project-cta-card {
		min-height: 280px;
	}

	.site-footer h4 {
		text-align: left;
	}
}
