/* =====================
	 ANIMACIONES SCROLL Y LAZY LOADING
====================== */
.fade-in {
	opacity: 0;
	transform: translateY(40px);
	transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
	opacity: 1;
	transform: none;
}
.slide-in {
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}
.slide-in.visible {
	opacity: 1;
	transform: none;
}
.parallax-scroll {
	will-change: transform;
	transition: transform 0.7s cubic-bezier(.4,0,.2,1);
}
/* =====================
	 GALERÍAS PREMIUM Y LIGHTBOX
====================== */
.premium-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 32px;
}
.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	cursor: pointer;
	background: var(--cement-gray);
	transition: box-shadow 0.4s, transform 0.4s;
}
.gallery-img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(.4,0,.2,1), filter 0.4s;
	filter: grayscale(0.2);
}
.gallery-item:hover .gallery-img,
.gallery-item:focus .gallery-img {
	transform: scale(1.08);
	filter: grayscale(0) brightness(1.1);
}
.gallery-overlay {
	position: absolute;
	inset: 0;
	background: rgba(34,34,34,0.55);
	opacity: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: opacity 0.4s;
	pointer-events: none;
}
.gallery-item:hover .gallery-overlay,
.gallery-item:focus .gallery-overlay {
	opacity: 1;
	pointer-events: auto;
}
.gallery-title {
	color: var(--white);
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 18px;
	letter-spacing: 1px;
	text-shadow: 0 2px 8px var(--black);
	animation: fadeIn 0.7s;
}
.gallery-btn {
	background: var(--orange);
	color: var(--white);
	border: none;
	padding: 10px 28px;
	border-radius: 20px;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	transition: background 0.3s, color 0.3s, transform 0.3s;
	margin-top: 8px;
	opacity: 0;
	animation: fadeIn 0.7s 0.2s forwards;
	pointer-events: auto;
}
.gallery-item:hover .gallery-btn,
.gallery-item:focus .gallery-btn {
	opacity: 1;
	transform: scale(1.08);
}
.gallery-btn:hover {
	background: var(--white);
	color: var(--orange);
	box-shadow: 0 4px 16px rgba(255,111,26,0.18);
}

/* Lightbox premium */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
}
.lightbox.active {
	display: flex;
}
.lightbox-bg {
	position: absolute;
	inset: 0;
	background: rgba(34,34,34,0.75);
	backdrop-filter: blur(6px);
	animation: lightboxFadeIn 0.5s;
}
@keyframes lightboxFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.lightbox-content {
	position: relative;
	background: var(--white);
	border-radius: 18px;
	box-shadow: 0 8px 48px rgba(0,0,0,0.25);
	padding: 32px 24px 24px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	animation: fadeIn 0.6s;
	min-width: 320px;
	max-width: 90vw;
	max-height: 90vh;
}
.lightbox-content img {
	max-width: 60vw;
	max-height: 60vh;
	border-radius: 12px;
	margin-bottom: 18px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.12);
}
.lightbox-title {
	color: var(--cement-gray);
	font-size: 1.2rem;
	font-weight: 600;
	margin-bottom: 12px;
	text-align: center;
}
.lightbox-close {
	position: absolute;
	top: 12px;
	right: 18px;
	background: none;
	border: none;
	font-size: 2.2rem;
	color: var(--orange);
	cursor: pointer;
	transition: color 0.3s, transform 0.3s;
	z-index: 10;
	opacity: 0.85;
	animation: lightboxCloseIn 0.5s;
}
.lightbox-close:hover {
	color: var(--cement-gray);
	transform: rotate(90deg) scale(1.2);
	opacity: 1;
}
.lightbox-prev, .lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: var(--orange);
	color: var(--white);
	border: none;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	font-size: 2rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	transition: background 0.3s, color 0.3s, transform 0.3s;
	z-index: 10;
	opacity: 0.85;
}
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }
.lightbox-prev:hover, .lightbox-next:hover {
	background: var(--white);
	color: var(--orange);
	box-shadow: 0 4px 16px rgba(255,111,26,0.18);
	opacity: 1;
}

/* Antes y después premium */
.premium-beforeafter {
	display: flex;
	gap: 32px;
	justify-content: center;
	align-items: flex-end;
	margin-top: 32px;
	flex-wrap: wrap;
}
.beforeafter-item {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	cursor: pointer;
	background: var(--cement-gray);
	transition: box-shadow 0.4s, transform 0.4s;
	min-width: 260px;
	max-width: 320px;
	flex: 1 1 260px;
}
.before-img, .after-img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 14px;
	background: var(--cement-gray);
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	transition: transform 0.4s, box-shadow 0.4s;
}
.beforeafter-item:hover .before-img,
.beforeafter-item:focus .before-img,
.beforeafter-item:hover .after-img,
.beforeafter-item:focus .after-img {
	transform: scale(1.08);
	box-shadow: 0 8px 32px rgba(255,111,26,0.12);
}
.beforeafter-overlay {
	position: absolute;
	inset: 0;
	background: rgba(34,34,34,0.55);
	opacity: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: opacity 0.4s;
	pointer-events: none;
}
.beforeafter-item:hover .beforeafter-overlay,
.beforeafter-item:focus .beforeafter-overlay {
	opacity: 1;
	pointer-events: auto;
}
.beforeafter-title {
	color: var(--white);
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 12px;
	letter-spacing: 1px;
	text-shadow: 0 2px 8px var(--black);
	animation: fadeIn 0.7s;
}
.beforeafter-btn {
	background: var(--orange);
	color: var(--white);
	border: none;
	padding: 8px 22px;
	border-radius: 18px;
	font-size: 0.98rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.10);
	transition: background 0.3s, color 0.3s, transform 0.3s;
	margin-top: 6px;
	opacity: 0;
	animation: fadeIn 0.7s 0.2s forwards;
	pointer-events: auto;
}
.beforeafter-item:hover .beforeafter-btn,
.beforeafter-item:focus .beforeafter-btn {
	opacity: 1;
	transform: scale(1.08);
}
.beforeafter-btn:hover {
	background: var(--white);
	color: var(--orange);
	box-shadow: 0 4px 16px rgba(255,111,26,0.18);
}
/* =====================
	 TARJETAS INTELIGENTES DE SERVICIOS
====================== */
.services-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 32px;
	margin-top: 32px;
}
.service-card.smart-card {
	background: var(--white);
	border: 2px solid var(--cement-gray);
	border-radius: 18px;
	padding: 38px 18px 28px 18px;
	text-align: center;
	color: var(--black);
	box-shadow: 0 2px 8px rgba(0,0,0,0.07);
	transition: box-shadow 0.5s, transform 0.5s, border-color 0.5s, filter 0.5s;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	min-height: 180px;
	outline: none;
}
.service-card.smart-card:focus {
	box-shadow: 0 0 0 3px var(--orange), 0 8px 32px rgba(255,111,26,0.10);
}
.service-card.smart-card:hover, .service-card.smart-card:focus {
	box-shadow: 0 12px 36px rgba(255,111,26,0.16), 0 0 16px 2px var(--orange);
	border-color: var(--orange);
	transform: translateY(-10px) scale(1.05);
	filter: brightness(1.04) drop-shadow(0 2px 16px #ff6f1a22);
}
.service-icon {
	display: inline-block;
	width: 48px;
	height: 48px;
	margin-bottom: 12px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	transition: transform 0.5s cubic-bezier(.4,0,.2,1), filter 0.4s;
	filter: grayscale(0.2) brightness(0.95);
}
.service-card.smart-card:hover .service-icon,
.service-card.smart-card:focus .service-icon {
	transform: scale(1.18) rotate(-8deg);
	filter: grayscale(0) brightness(1.1) drop-shadow(0 2px 8px var(--orange));
}
.service-title {
	font-size: 1.18rem;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--cement-gray);
	letter-spacing: 0.5px;
}
.service-desc {
	font-size: 1rem;
	color: var(--black);
	opacity: 0;
	max-height: 0;
	transform: translateY(18px);
	transition: opacity 0.5s, max-height 0.5s, transform 0.5s;
	pointer-events: none;
	will-change: opacity, transform;
}
.service-card.smart-card:hover .service-desc,
.service-card.smart-card:focus .service-desc {
	opacity: 1;
	max-height: 80px;
	transform: translateY(0);
	pointer-events: auto;
	animation: serviceDescIn 0.6s cubic-bezier(.4,0,.2,1);
}
@keyframes serviceDescIn {
	from { opacity: 0; transform: translateY(18px); }
	to { opacity: 1; transform: none; }
}
/* =====================
	 HERO PREMIUM
====================== */
.hero {
	position: relative;
	height: 100vh;
	min-height: 520px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--cement-gray);
	overflow: hidden;
}
.hero-bg, .parallax-hero {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(120deg, var(--cement-gray) 60%, var(--orange) 100%);
	z-index: 1;
	will-change: transform;
	animation: heroParallaxBg 12s linear infinite alternate;
}
@keyframes heroParallaxBg {
	0% { filter: brightness(1) blur(0px); }
	100% { filter: brightness(1.1) blur(2px); }
}
.hero-content {
	position: relative;
	z-index: 2;
	text-align: center;
	color: var(--white);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 320px;
	animation: fadeIn 1.2s;
}
.cinematic-intro {
	animation: cinematicIntro 1.2s cubic-bezier(.4,0,.2,1);
}
@keyframes cinematicIntro {
	from { opacity: 0; filter: blur(8px) brightness(0.7); transform: scale(1.08); }
	to { opacity: 1; filter: blur(0) brightness(1); transform: scale(1); }
}
.hero-title-seq {
	font-size: 2.8rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	color: var(--white);
	text-shadow: 2px 2px 16px var(--black);
	margin-bottom: 0.7em;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.08em;
}
.hero-title-seq span {
	opacity: 0;
	transform: translateY(40px) scale(0.9);
	display: inline-block;
	animation: heroLetterIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-title-seq span.space {
	width: 1.2em;
	display: inline-block;
	opacity: 0;
	animation: none;
}
.hero-title-seq span:nth-child(1) { animation-delay: 0.05s; }
.hero-title-seq span:nth-child(2) { animation-delay: 0.10s; }
.hero-title-seq span:nth-child(3) { animation-delay: 0.15s; }
.hero-title-seq span:nth-child(4) { animation-delay: 0.20s; }
.hero-title-seq span:nth-child(5) { animation-delay: 0.25s; }
.hero-title-seq span:nth-child(6) { animation-delay: 0.30s; }
.hero-title-seq span:nth-child(7) { animation-delay: 0.35s; }
.hero-title-seq span:nth-child(8) { animation-delay: 0.40s; }
.hero-title-seq span:nth-child(10) { animation-delay: 0.50s; }
.hero-title-seq span:nth-child(11) { animation-delay: 0.55s; }
.hero-title-seq span:nth-child(12) { animation-delay: 0.60s; }
.hero-title-seq span:nth-child(13) { animation-delay: 0.65s; }
.hero-title-seq span:nth-child(14) { animation-delay: 0.70s; }
.hero-title-seq span:nth-child(15) { animation-delay: 0.75s; }
.hero-title-seq span:nth-child(16) { animation-delay: 0.80s; }
.hero-title-seq span:nth-child(17) { animation-delay: 0.85s; }
.hero-title-seq span:nth-child(18) { animation-delay: 0.90s; }
.hero-title-seq span:nth-child(19) { animation-delay: 0.95s; }
.hero-title-seq span:nth-child(20) { animation-delay: 1.00s; }
.hero-title-seq span:nth-child(21) { animation-delay: 1.05s; }
.hero-title-seq span:nth-child(22) { animation-delay: 1.10s; }
.hero-title-seq span:nth-child(23) { animation-delay: 1.15s; }
@keyframes heroLetterIn {
	from { opacity: 0; transform: translateY(40px) scale(0.9); }
	to { opacity: 1; transform: none; }
}
.hero-lema-seq {
	font-size: 1.3rem;
	color: var(--orange);
	margin-bottom: 2.2em;
	font-weight: 600;
	letter-spacing: 0.08em;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.04em;
}
.hero-lema-seq span {
	opacity: 0;
	transform: translateY(30px) scale(0.9);
	display: inline-block;
	animation: heroLemaIn 0.7s cubic-bezier(.4,0,.2,1) forwards;
}
.hero-lema-seq span:nth-child(1) { animation-delay: 1.2s; }
.hero-lema-seq span:nth-child(2) { animation-delay: 1.25s; }
.hero-lema-seq span:nth-child(3) { animation-delay: 1.3s; }
.hero-lema-seq span:nth-child(4) { animation-delay: 1.35s; }
.hero-lema-seq span:nth-child(5) { animation-delay: 1.4s; }
.hero-lema-seq span:nth-child(6) { animation-delay: 1.45s; }
.hero-lema-seq span:nth-child(7) { animation-delay: 1.5s; }
.hero-lema-seq span:nth-child(8) { animation-delay: 1.55s; }
.hero-lema-seq span:nth-child(9) { animation-delay: 1.6s; }
.hero-lema-seq span:nth-child(10) { animation-delay: 1.65s; }
.hero-lema-seq span:nth-child(11) { animation-delay: 1.7s; }
.hero-lema-seq span:nth-child(12) { animation-delay: 1.75s; }
.hero-lema-seq span:nth-child(13) { animation-delay: 1.8s; }
.hero-lema-seq span:nth-child(14) { animation-delay: 1.85s; }
.hero-lema-seq span:nth-child(15) { animation-delay: 1.9s; }
.hero-lema-seq span:nth-child(16) { animation-delay: 1.95s; }
.hero-lema-seq span:nth-child(17) { animation-delay: 2.0s; }
.hero-lema-seq span:nth-child(18) { animation-delay: 2.05s; }
.hero-lema-seq span:nth-child(19) { animation-delay: 2.1s; }
.hero-lema-seq span:nth-child(20) { animation-delay: 2.15s; }
.hero-lema-seq span:nth-child(21) { animation-delay: 2.2s; }
.hero-lema-seq span:nth-child(22) { animation-delay: 2.25s; }
.hero-lema-seq span:nth-child(23) { animation-delay: 2.3s; }
.hero-lema-seq span:nth-child(24) { animation-delay: 2.35s; }
.hero-lema-seq span:nth-child(25) { animation-delay: 2.4s; }
.hero-lema-seq span:nth-child(26) { animation-delay: 2.45s; }
.hero-lema-seq span:nth-child(27) { animation-delay: 2.5s; }
.hero-lema-seq span:nth-child(28) { animation-delay: 2.55s; }
.hero-lema-seq span:nth-child(29) { animation-delay: 2.6s; }
.hero-lema-seq span:nth-child(30) { animation-delay: 2.65s; }
.hero-lema-seq span:nth-child(31) { animation-delay: 2.7s; }
.hero-lema-seq span:nth-child(32) { animation-delay: 2.75s; }
@keyframes heroLemaIn {
	from { opacity: 0; transform: translateY(30px) scale(0.9); }
	to { opacity: 1; transform: none; }
}
.hero-cta {
	margin-top: 1.2em;
	font-size: 1.15rem;
	padding: 16px 38px;
	box-shadow: 0 8px 32px rgba(255,111,26,0.10);
	animation: fadeIn 2.2s 2.2s backwards;
}
@media (max-width: 900px) {
	.hero-title-seq { font-size: 1.6rem; }
	.hero-lema-seq { font-size: 1rem; }
	.hero { min-height: 340px; }
}
/* =====================
	 MENÚ STICKY PREMIUM
====================== */
.main-header {
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 100;
	background: var(--white);
	box-shadow: 0 2px 16px rgba(0,0,0,0.04);
	transition: box-shadow 0.3s;
}
.navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	height: 68px;
	position: relative;
}
.logo {
	font-weight: 900;
	font-size: 1.5rem;
	color: var(--orange);
	letter-spacing: 2px;
	text-decoration: none;
	transition: color 0.3s;
}
.nav-links {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.nav-links li {
	position: relative;
}
.nav-links a {
	color: var(--cement-gray);
	font-weight: 600;
	text-decoration: none;
	font-size: 1.08rem;
	padding: 8px 0;
	display: inline-block;
	transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
	color: var(--orange);
}
.nav-links a::after {
	content: '';
	display: block;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, var(--orange), var(--cement-gray));
	border-radius: 2px;
	transition: width 0.35s cubic-bezier(.4,0,.2,1);
	margin-top: 3px;
}
.nav-links a:hover::after, .nav-links a.active::after {
	width: 100%;
}

/* Menú móvil animado */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 44px;
	height: 44px;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 200;
}
.menu-toggle span {
	display: block;
	width: 28px;
	height: 4px;
	margin: 4px 0;
	background: var(--orange);
	border-radius: 2px;
	transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
.menu-toggle.open span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
	opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
	.nav-links {
		position: absolute;
		top: 68px;
		right: 0;
		background: var(--white);
		flex-direction: column;
		width: 220px;
		box-shadow: 0 8px 32px rgba(0,0,0,0.10);
		border-radius: 0 0 12px 12px;
		gap: 0;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-20px);
		transition: opacity 0.4s, transform 0.4s;
	}
	.nav-links.open {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}
	.nav-links li {
		border-bottom: 1px solid #eee;
		padding: 0 18px;
	}
	.nav-links li:last-child {
		border-bottom: none;
	}
	.menu-toggle {
		display: flex;
	}
}
/* Aquí irá el CSS premium global para toda la plataforma. */
