@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html,
body {
	width: 100%;
	height: 100%;
	font-family: "Montserrat", sans-serif;
}
img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	will-change: transform;
}
nav.portfolio-slider-nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	padding: 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}
nav.portfolio-slider-nav p,
footer.portfolio-slider-footer p {
	color: #fff;
	font-size: 0.75rem;
	font-weight: 500;
}

/* Estilos para el enlace "All Projects" */
.all-projects-link {
	text-decoration: none;
	color: #fff;
	transition: all 0.3s ease;
	position: relative;
	display: inline-block;
}

.all-projects-link:hover {
	color: var(--primary-color, #d4fd48);
	transform: translateY(-2px);
}

.all-projects-link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--primary-color, #d4fd48);
	transition: width 0.3s ease;
}

.all-projects-link:hover::after {
	width: 100%;
}
.nav-items {
	display: flex;
	gap: 2rem;
}
footer.portfolio-slider-footer {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 3rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2;
}
.slider-counter {
	display: flex;
}
.slider-counter p,
.slider-counter > div {
	width: 1.5rem;
	display: flex;
	justify-content: center;
}
.slider-counter p {
	opacity: 0.35;
}
.count {
	position: relative;
	height: 1.125rem;
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.count p {
	position: absolute;
	transform: translateY(0px);
	font-size: 1rem;
	line-height: 1;
	will-change: transform;
	opacity: 1;
}
.slider {
	position: relative;
	width: 100vw;
	height: 100vh;
	min-height: 100vh;
	max-width: 100vw;
	max-height: 100vh;
	overflow: hidden;
	background: transparent;
}
.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.slide-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
	will-change: clip-path;
}

.slide-bg-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: blur(8px) brightness(0.7);
	transform: scale(1.1); /* Evita bordes blancos del blur */
}
.slide-bg-img::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
	background: linear-gradient(
		135deg,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.2) 50%,
		rgba(0, 0, 0, 0.4) 100%
	);
	backdrop-filter: blur(2px);
}
.slide-main-img {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 35%;
	height: 50%;
	z-index: 2;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px,
		rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}
.slide-main-img-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
	will-change: clip-path;
}
.slide-copy {
	position: absolute;
	top: 50%;
	left: 15%;
	transform: translate(-15%, -50%);
	color: #fff;
	z-index: 2;
	text-shadow: 
		2px 2px 8px rgba(0, 0, 0, 0.8),
		0 0 20px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	padding: 2rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.1);
}
.slide-title {
	position: relative;
	width: 500px;
	height: 50px;
	margin-bottom: 0.75rem;
	clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.slide-title h1 {
	position: absolute;
	color: #fff;
	font-size: 3rem;
	font-weight: 700;
	line-height: 1;
	transform: translateY(0px);
	will-change: transform;
	text-shadow: 
		3px 3px 10px rgba(0, 0, 0, 0.9),
		0 0 30px rgba(0, 0, 0, 0.6);
}
.slide-description {
	position: relative;
	width: 500px;
	/* height: 20px; */
	/* clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%); */
	min-height: 1.5em;
	max-width: 90vw;
	white-space: normal;
	overflow: visible;
}
.slide-description p {
	position: relative;
	color: #fff;
	font-size: 1.125rem;
	font-weight: 300;
	line-height: 1.4;
	transform: translateY(0px);
	will-change: transform;
	white-space: normal;
	overflow: visible;
	word-break: break-word;
}
.slide-copy .btn {
	margin-top: 2rem;
}

/* Estilos para el botón del slider */
.slide-actions {
	margin-top: 2rem;
}

.slide-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2rem;
	background: rgba(212, 253, 72, 0.1);
	border: 2px solid var(--primary-color, #d4fd48);
	color: var(--primary-color, #d4fd48);
	text-decoration: none;
	font-weight: 600;
	font-size: 1rem;
	transition: all 0.3s ease;
	backdrop-filter: blur(10px);
	position: relative;
	overflow: hidden;
}

.slide-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(212, 253, 72, 0.2), transparent);
	transition: left 0.5s ease;
}

.slide-btn:hover {
	background: var(--primary-color, #d4fd48);
	color: var(--text-dark, #0f172a);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(212, 253, 72, 0.3);
}

.slide-btn:hover::before {
	left: 100%;
}

.slide-btn span {
	position: relative;
	z-index: 1;
}

.slide-btn i {
	position: relative;
	z-index: 1;
	transition: transform 0.3s ease;
}

.slide-btn:hover i {
	transform: translateX(5px);
}
@media (max-width: 900px) {
	.slide-main-img {
		width: 85%;
	}
	.slide-copy {
		width: 75%;
		top: 70%;
		left: 50%;
		transform: translate(-50%, -70%);
	}
	.slide-title,
	.slide-description {
		width: 100%;
	}
	
	.slide-actions {
		margin-top: 1.5rem;
		text-align: center;
	}
	
	.slide-btn {
		padding: 0.875rem 1.75rem;
		font-size: 0.9rem;
	}
}
.portafolio-section .container {
	max-width: 100vw !important;
	width: 100vw !important;
	padding: 0 !important;
	margin: 0 !important;
}
.portafolio-section {
	width: 100vw;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	position: relative;
	overflow: hidden;
	background: transparent;
}
.portafolio-video-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 0;
	overflow: hidden;
}
.portafolio-video-background video {
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	min-width: 100vw;
	min-height: 100vh;
}
.portafolio-video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.3);
	z-index: 1;
}
.portfolio-slider-nav, .portfolio-slider-footer {
	z-index: 10;
} 