:root {
	--lerp-0: 1;
	--lerp-1: 0.5787037;
	--lerp-2: 0.2962963;
	--lerp-3: 0.125;
	--lerp-4: 0.037037;
	--lerp-5: 0.0046296;
	--lerp-6: 0;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

* {
	margin: 0;
	padding: 0;
	font: inherit;
}

html {
	scroll-behavior: smooth;
}

body,
html {
	font-family: 'Open Sans', sans-serif;
	text-rendering: optimizeLegibility !important;
	-webkit-font-smoothing: antialiased !important;
	color: #666;
	font-weight: 400;
	width: 100% !important;
	height: 100% !important;
}

h2 {
	font-family: 'Montserrat', sans-serif;
	margin: 0 0 20px 0;
	font-weight: 700;
	font-size: 32px;
	color: #333;
}

h3 {
	font-family: 'Montserrat', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #333;
}

h4 {
	font-size: 18px;
	color: #333;
}

h5 {
	text-transform: uppercase;
	font-weight: 700;
	line-height: 20px;
}

p {
	font-size: 17px;
}

p.intro {
	margin: 12px 0 0;
	line-height: 24px;
}

a {
	color: #1f386e;
	font-weight: 400;
}

a:hover,
a:focus {
	text-decoration: none;
	color: #e52f3c;
}

ul,
ol {
	list-style: none;
}

ul,
ol {
	padding: 0;
	webkit-padding: 0;
	moz-padding: 0;
}

hr {
	height: 2px;
	width: 70px;
	text-align: center;
	position: relative;
	background: #1E7A46;
	margin-bottom: 20px;
	border: 0;
}

/* Navigation */
#menu {
	padding: 20px;
	transition: all 0.8s;
}

#menu.navbar-default.sticky {
	padding: 1rem;
}

#menu.navbar-default.sticky a.navbar-brand img {
	height: 70px;
	width: 210px;
	top: -5px;
}

#menu.navbar-default {
	/* background: linear-gradient(to right, #00d39f 0%, #008bd3 25%, #d40063 75%, #d4be00 100%); */
	background: linear-gradient(#ffffff, #adadad);
	border-color: #adadad;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}


#menu a.navbar-brand img {
	height: 80px !important;
	width: 100px !important;
	position: absolute;
	top: 3px;
	transition: .7s;
}

#menu.navbar-default .navbar-nav>li>a {
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	color: rgb(73, 73, 73);
	font-size: 14px;
	font-weight: 700;
	padding: 8px 2px;
	border-radius: 0;
	margin: 9px 20px 0 20px;
}

#menu.navbar-default .navbar-nav>li>a:hover {
	color: rgb(0, 0, 0);
}

.navbar-default .navbar-nav>.active>a,
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus {
	color: black !important;
	background-color: transparent;
	text-decoration: underline;
}

@media(max-width: 50em) {
	#menu .navbar-header {
		margin-bottom: 14px;
	}
}

#menu .phone {
	font-family: 'Montserrat', sans-serif;
	margin: 4px 0 0 220px;
	float: left;
	font-size: 16px;
	font-weight: 400;
	color: rgb(255, 255, 255);
}

#menu .phone span {
	font-size: 14px;
	display: block;
	color: #ffffff;
}

.navbar-toggle {
	border-radius: 0;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
	background-color: #fff;
	border-color: #fff;
}

.navbar-default .navbar-toggle:hover>.icon-bar {
	background-color: rgb(212, 133, 30);
}

.navbar-default .navbar-toggle>.icon-bar {
	background-color: #ffffff;
}

.navbar-default .navbar-toggle:focus>.icon-bar {
	background-color: rgb(212, 133, 30);
}

.section-title {
	margin-bottom: 50px;
}

.section-title h2 {
	position: relative;
	margin-top: 10px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

.section-title h2::after {
	position: absolute;
	content: "";
	background-color: #562916;
	height: 3px;
	width: 350px;
	bottom: -1px;
	left: 0;
}

.btn-custom {
	text-transform: uppercase;
	color: rgb(73, 73, 73);
	background: rgb(173, 173, 173);
	background: linear-gradient(180deg, #DCDCDC 0%, rgba(225, 225, 225, 1) 50%, #DCDCDC 100%);
	padding: 14px 20px;
	letter-spacing: 1px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	border-radius: 4px;
	transition: all 0.3s;
}

.btn-custom:hover,
.btn-custom:focus,
.btn-custom.focus,
.btn-custom:active,
.btn-custom.active {
	color: black;
}

.btn:active,
.btn.active {
	background-image: none;
	outline: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
}

a:focus,
.btn:focus,
.btn:active:focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn.active.focus {
	outline: none;
	outline-offset: none;
}

/* Header Section */
.intro {
	display: table;
	width: 100%;
	padding: 0;
	background: url(../img/bg-intro.jpg) center center no-repeat;
	background-color: #e5e5e5;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	background-size: cover;
	-o-background-size: cover;
}

.overlay {
	background: rgba(0, 0, 0, 0.438);
}

.intro h1 {
	font-family: 'Montserrat', sans-serif;
	color: #fff;
	font-size: 62px;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 10px;
	text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

@media(max-width: 60em) {
	.intro h1 {
		font-size: 40px;
	}
}

.intro p {
	color: #fff;
	font-size: 18px;
	line-height: 28px;
	padding: 15px;
	max-width: 600px;
	margin: 0 auto;
	margin-bottom: 20px;
	position: relative;
}

.intro p::after {
	content: '';
	position: absolute;
	width: 50%;
	height: 2px;
	background-color: white;
	top: 0;
	left: 25%;
	right: 25%;
}

header .intro-text {
	padding-top: 250px;
	padding-bottom: 250px;
	text-align: center;
}

/* Get Touch Section */
#get-touch {
	padding: 40px 0 30px;
	color: rgb(73, 73, 73);
	background: #D8D8D8;
	background: linear-gradient(180deg, #D8D8D8 0%, rgb(243, 243, 243) 50%, #D8D8D8 100%);
}

#get-touch h3 {
	font-size: 24px;
	font-weight: 400;
	color: rgb(73, 73, 73);
	margin: 0 0 10px 0;
}

#get-touch .btn-custom {
	margin: 1rem;
	color: rgb(73, 73, 73);
	background: transparent;
	border: 2px solid rgb(73, 73, 73);
	;
}

#get-touch .btn-custom:hover {
	color: black;
	border: 2px solid black;
}

/* About Section */
#about {
	padding: 80px 0;
	background: #f6f6f6;
}

#about h3 {
	font-size: 22px;
	margin: 0 0 20px 0;
}

#about h2 {
	position: relative;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.09);
}

#about h2::after {
	position: absolute;
	content: "";
	background-color: #562916;
	height: 3px;
	width: 350px;
	bottom: -1px;
	left: 0;
}

#about .about-text li {
	font-size: 17px;
	margin-bottom: 6px;
	margin-left: 6px;
	list-style: none;
	padding: 0;
}

#about .about-text li:before {
	content: '\f00c';
	font-family: 'FontAwesome';
	color: #1f386e;
	font-size: 11px;
	font-weight: 300;
	padding-right: 8px;
}

#about img {
	padding: 20px;
	width: 100%;
	height: 390px;
	margin-top: 10px;
	background: #fff;
	border-right: 0;
	box-shadow: 0 0 50px rgba(0, 0, 0, 0.06);
}

#about p {
	line-height: 24px;
	margin: 30px 0;
	text-align: justify;
}

/* Services Section */
#services {
	padding: 80px 0;
	background-image: url("../img/parallax_bg.jpg");
	background-position: center top;
	background-attachment: fixed;
}

#services .service-media {
	margin: 10px;
}

#services .service-media img {
	position: relative;
	display: block;
	aspect-ratio: 3/2;
	width: 100%;
	height: auto;
}

#services .service-desc {
	margin: 10px 10px 20px;
}

#services .service-desc ul {
	margin: 10px 10px 20px;
	font-size: 17px;
	list-style: circle;
}

#services h3 {
	font-weight: 700;
	padding: 5px 0;
}

#services .service-desc hr {
	margin-left: 0;
}

/* Portfolio Section */
#portfolio {
	padding: 80px 0;
	background: #f6f6f6;
}

#portfolio ul {
	display: flex;
	width: 100%;
	padding: 0;
	margin: 0;
	list-style-type: none;
}

@media(max-width: 60em) {
	#portfolio ul {
		display: block;	
		margin-inline: auto;
		width: 90%;
	}
	#portfolio ul li{
		margin-bottom: 2rem;
	}
}

#portfolio img {
	max-width: 100%;
	width: 100%;
	object-fit: cover;
	transition: all 0.7s ease;
}

#portfolio .image-container {
	position: relative;
}

#portfolio .header {
	position: absolute;
	top: 10px;
	left: 15px;
	color: white;
	text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
	font-size: 22px;
	z-index: 2;
}

#portfolio ul:is(:hover, :focus-within) img {
	opacity: calc(0.1 + (var(--active-lerp, 0) * 0.9));
	filter: grayscale(calc(1 - var(--active-lerp, 0)));
}

#portfolio a {
	outline-offset: 4px;
}

#portfolio li {
	flex: calc(0.3 + (var(--active-lerp, 0) * 1));
	transition: flex 0.5s ease;
	position: relative;
}

.overlay-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 1.8rem;
	color: rgb(255, 255, 255);
	background-color: #919191b4;
	padding: 10px;
	opacity: 0;
	transition: opacity 0.7s ease;
	width: 380px;
	text-align: center;
	text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.ver-mas {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%);
	color: white;
	font-weight: bold;
	padding: 5px 10px;
	opacity: 0;
	background-color: #919191b7;
	transition: opacity 0.7s ease;
	text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

#portfolio li:hover .ver-mas {
	opacity: 1;
	/* Muestra el texto al hacer hover */
}

#portfolio li:hover .overlay-text {
	opacity: 1;
	/* Muestra el texto al hacer hover */
}

#portfolio li:is(:hover, :focus-within) {
	--active-lerp: var(--lerp-0);
	z-index: 7;
}

#portfolio li:has(+ li:is(:hover, :focus-within)),
li:is(:hover, :focus-within)+li {
	--active-lerp: var(--lerp-1);
	z-index: 6;
}

#portfolio li:has(+ li + li:is(:hover, :focus-within)),
li:is(:hover, :focus-within)+li+li {
	--active-lerp: var(--lerp-2);
	z-index: 5;
}

#portfolio li:has(+ li + li + li:is(:hover, :focus-within)),
li:is(:hover, :focus-within)+li+li+li {
	--active-lerp: var(--lerp-3);
	z-index: 4;
}

#portfolio li:has(+ li + li + li + li:is(:hover, :focus-within)),
li:is(:hover, :focus-within)+li+li+li+li {
	--active-lerp: var(--lerp-4);
	z-index: 3;
}

#portfolio li:has(+ li + li + li + li + li:is(:hover, :focus-within)),
li:is(:hover, :focus-within)+li+li+li+li+li {
	--active-lerp: var(--lerp-5);
	z-index: 2;
}

#portfolio li:has(+ li + li + li + li + li + li:is(:hover, :focus-within)),
li:is(:hover, :focus-within)+li+li+li+li+li+li {
	--active-lerp: var(--lerp-6);
	z-index: 1;
}

/* Partners Section */
#partners {
	padding: 80px 0;
}

.partners-and-news-bg {
	background-image: url("../img/parallax_bg_partners.jpg");
	background-size: cover;
	background-attachment: fixed;
}

.slider {
	width: 75vw;
	height: auto;
	margin: auto;
	overflow: hidden;
}

.slider .slide-track {
	display: flex;
	align-items: center;
	gap: 32px;
	animation: scroll 40s linear infinite;
	-webkit-animation: scroll 40s linear infinite;
	width: calc(232px * 16);
}

.slider .slide {
	width: 200px;
}

.slider .slide img {
	width: 100%;
}

@keyframes scroll {
	0% {
		-webkit-transform: translateX(0);
		transform: translateX(0);
	}

	100% {
		-webkit-transform: translateX(calc(-232px * 8));
		transform: translateX(calc(-232px * 8));
	}
}

/* News Section */
#news {
	padding: 80px 0;
}

#news .service-media {
	display: flex;
	align-items: center;
	margin: 10px;
	width: 300px;
	height: 374px;
	background-color: rgb(32, 130, 195);
}

@media(max-width: 60em) {
	#news .service-media {
		display: flex;
		align-items: center;
		margin: 10px;
		height: auto;
		background-color: rgb(32, 130, 195);
	}
}


#news .service-media img {
	position: relative;
	display: block;
	width: 100%;
}

#news .service-desc {
	margin: 10px 10px 40px;
}

#news h3 {
	font-weight: 700;
	padding: 5px 0;
}

#news .service-desc hr {
	margin-left: 0;
}

#news .service-desc a {
	font-weight: bold;
	font-size: 1.5rem;
}

/* Testimonials Section */
#testimonials {
	padding: 80px 0;
	background-color: rgb(246, 246, 246);
}

#testimonials i {
	color: #e6e6e6;
	font-size: 32px;
	margin-bottom: 20px;
}

.testimonial {
	position: relative;
	padding: 20px;
}

.testimonial-image {
	float: left;
	margin-right: 15px;
}

.testimonial-image,
.testimonial-image img {
	display: block;
	width: 64px;
	height: 64px;
}

.testimonial-content {
	position: relative;
	overflow: hidden;
}

.testimonial-content p {
	margin-bottom: 0;
	font-size: 14px;
	font-style: italic;
}

.testimonial-meta {
	margin-top: 10px;
	font-size: 13px;
	font-weight: bold;
	text-transform: uppercase;
}

/* Contact Section */
#contact {
	padding: 80px 0 60px 0;
	background: #D8D8D8;
	background: linear-gradient(180deg, #D8D8D8 0%, rgb(243, 243, 243) 50%, #D8D8D8 100%);
	color: rgba(0, 0, 0, 0.65);
}

#contact .section-title {
	margin-bottom: 40px;
}

#contact h2 {
	color: rgba(0, 0, 0, 0.8);
	margin-top: 10px;
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.616);
}

#contact h4 {
	color: black;
	margin-top: 22px;
	margin-bottom: 60px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.616);
}

#contact form {
	padding-top: 20px;
}

#contact h3 {
	font-size: 17px;
	font-weight: 600;
}

#contact .text-danger {
	color: #cc0033;
	text-align: left;
}

#contact .btn-custom {
	margin: 30px 0;
	background: transparent;
	border: 2px solid #0000009b;
}

#contact .btn-custom:hover {
	color: black;
	border: 2px solid black;
}

label {
	font-size: 12px;
	font-weight: 400;
	font-family: 'Open Sans', sans-serif;
	float: left;
}

#contact .form-control {
	display: block;
	width: 100%;
	padding: 6px 12px;
	font-size: 16px;
	line-height: 1.42857143;
	color: rgba(0, 0, 0, 0.65);
	background-color: #fff;
	background-image: none;
	border: 1px solid #ddd;
	border-radius: 0;
	-webkit-box-shadow: none;
	box-shadow: none;
	-webkit-transition: none;
	-o-transition: none;
	transition: none;
}

#contact .form-control:focus {
	border-color: #999;
	outline: 0;
	-webkit-box-shadow: transparent;
	box-shadow: transparent;
}

.form-control::-webkit-input-placeholder {
	color: #777;
}

.form-control:-moz-placeholder {
	color: #777;
}

.form-control::-moz-placeholder {
	color: #777;
}

.form-control:-ms-input-placeholder {
	color: #777;
}

#contact .contact-item {
	margin: 20px 0;
}

#contact .contact-item span {
	color: black;
	display: block;
}

#contact .social {
	border-top: 1px solid rgba(0, 0, 0, 0.616);
	padding-top: 50px;
	margin-top: 50px;
	text-align: center;
}

#contact .social ul li {
	display: inline-block;
	margin: 0 20px;
}

#contact .social i.fa {
	font-size: 24px;
	padding: 10px;
	color: rgba(0, 0, 0, 0.65);
	transition: all 0.3s;
}

#contact .social i.fa:hover {
	color: black;
}

.popup {
	display: flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	width: 100vw;
	height: 100vh;
	bottom: 0;
	right: 0;
	background-color: rgba(0, 0, 0, .80);
	z-index: 2;
	visibility: hidden;
	opacity: 0;
	overflow: hiden;
	transition: .64s ease-in-out;
}

.popup .popup-inner {
	position: relative;
	flex-direction: column;
	bottom: -100vw;
	right: -100vh;
	display: flex;
	align-items: center;
	max-width: 800px;
	max-height: 600px;
	width: 80%;
	height: 70%;
	background-color: #fff;
	transform: rotate(32deg);
	transition: .64s ease-in-out;
}

.popup-inner img {
	width: 25%;
}

.popup-inner iframe {
	width: 100%;
	height: 100%;
}

.popup:target {
	visibility: visible;
	opacity: 1;
}

.popup:target .popup-inner {
	bottom: 0;
	right: 0;
	transform: rotate(0);
}

.popup__close {
	position: absolute;
	right: -1rem;
	top: -1rem;
	width: 3rem;
	height: 3rem;
	font-size: .875rem;
	font-weight: 300;
	border-radius: 100%;
	background-color: #1f386e;
	z-index: 4;
	color: #fff;
	line-height: 3rem;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
}


/* Footer Section*/
#footer {
	margin-top: auto;
	color: rgb(255, 255, 255);
	font-weight: bold;
	background: #D8D8D8;
	background: linear-gradient(180deg, #D8D8D8 0%, rgb(243, 243, 243) 50%, #D8D8D8 100%);
}

.footer-wrapper {
	padding: 30px 0;
	background: rgba(0, 0, 0, 0.2);
}

#footer p {
	color: white;
	font-size: 14px;
}

#footer a {
	color: #1f386e;
}

#footer a:hover {
	color: #e52f3c;
}

@media(max-width: 1000px) {
	#menu.navbar-default .navbar-nav>li>a {
		margin: 9px 10px 0 10px;
	}
}

@media(max-width: 768px) {

	#about img {
		margin: 50px 0;
	}

	#about {
		padding-top: 40px;
	}
}

@media(max-width: 75em) {
	.phone {
		display: none;
	}
}

/* Email section */

.email-section {
	width: 100vw;
	height: 100vh;
	background-image: url("/img/about.jpg");

	backdrop-filter: blur(5px);

	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.email {
	background-color: rgb(0, 0, 0);
	/* Fallback color */
	background-color: rgba(0, 0, 0, 0.4);
	/* Black w/opacity/see-through */
	color: white;
	border: 3px solid #f1f1f1;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 60%;
	padding: 20px;
	text-align: center;
}

.email h1 {
	font-weight: 700;
	font-size: 2rem;
	margin-bottom: 1rem;
}

.email p {
	font-size: 1.3rem;
	font-weight: lighter;
	margin-bottom: 1rem;
}

.email i {
	font-size: 5rem;
	margin-bottom: 1rem;
}

.email a {
	display: inline-block;
	padding: 1rem;
	text-decoration: none;
	font-weight: bold;
}

@media(max-width: 60em) {
	.email {
		width: 85%;
	}

	.email h1 {
		font-size: 2.2rem;
	}
}

.margin-auto {
	width: 100%;
	margin-inline: auto;
}

#proyects {
	padding-top: 12rem;
}

.whatsapp {
	color: rgba(0, 0, 0, 0.65);
}

.whatsapp:hover {
	color: black;
}