:root {
	--blue-sky: #2e9afe;
	--sunflower-yellow: #f9d71c;
	--green-stem: #5fae3d;
	--green-leaf: #3e7a24;
	--white: #ffffff;
	--light-gray: #f4f4f4;
	--title: #ffffff;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: "Sen", sans-serif;
}

body {
	font-family: "Indie Flower", cursive;
	color: #333;
	background-color: var(--light-gray);
}

.top-bar {
	background-color: #f5f5f5;
	font-size: 14px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	transition: top 0.3s ease;
}

.top-bar.hide {
	top: -100px;
}

.nav-container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	/* flex-direction: column; */
	justify-content: space-between;
	align-items: center;
}

.principal-title {
	font-family: "Faculty Glyphic", cursive;
	font-weight: bold;
	line-height: 100%;
	font-size: 140px;
	color: var(--title);
	margin-bottom: 10px;
}

.principal-subpage-title {
	font-family: "Indie Flower", cursive;
	font-weight: bold;
	line-height: 100%;
	font-size: 70px;
	color: var(--title);
	margin-bottom: 10px;
}

.principal-subtitle {
	font-size: 16px;
	color: white;
	margin-bottom: 20px;
}

.promo-background {
	background-color: var(--blue-sky);
}

.promo-text {
	color: var(--white);
	font-weight: bold;
	font-size: 16px;
	overflow: hidden;
	white-space: nowrap;
	position: relative;
	height: 40px;
	display: flex;
	align-items: center;
}

.promo-track {
	display: inline-flex;
	animation: scroll-left 30s linear infinite;
}

.promo-track p {
	margin: 0;
	padding: 0 50px;
	font-size: 16px;
	color: var(--white);
	font-weight: bold;
	white-space: nowrap;
}

@keyframes scroll-left {
	0% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-50%);
	}
}

.promo-slider {
	display: flex;
	justify-content: center;
	align-items: center;
	animation: slidePromo 30s linear infinite;
}

.promo-slider p {
	flex: none;
	margin-right: 15px;
	white-space: nowrap;
}

@keyframes slidePromo {
	0% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(-50%);
	}
}

.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.nav-links a {
	text-decoration: none;
	color: white;
	font-weight: bold;
	font-size: 16px;
}

.miembros-area {
	text-decoration: none;
	color: white;
	font-weight: bold;
	font-size: 16px;
}

.bg-members {
	background-color: var(--green-stem);
}

.bg-members a {
	color: var(--white);
}

/* NAV BAR BASE */
.main-nav {
	position: fixed;
	top: 50px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--white);
	border-radius: 15px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	max-width: 800px;
	width: 90%;
	padding: 15px 25px;
	z-index: 1000;
	transition: top 0.3s ease;
}

.main-nav.move {
	top: 10px;
}

.main-menu {
	display: flex;
	gap: 25px;
}

.main-menu a {
	text-decoration: none;
	color: var(--green-stem);
	font-weight: 600;
	transition: color 0.3s;
}

.main-menu a:hover {
	color: var(--green-leaf);
}

/* BURGER STYLE */
.burger {
	display: none;
	flex-direction: column;
	cursor: pointer;
	gap: 4px;
}

.burger span {
	display: block;
	width: 25px;
	height: 3px;
	background: var(--green-stem);
	border-radius: 2px;
	transition: 0.3s;
}

.burger.active span:nth-child(1) {
	transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
	opacity: 0;
}
.burger.active span:nth-child(3) {
	transform: rotate(-45deg) translate(5px, -5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.burger {
		display: flex;
	}

	.main-nav {
		background-color: transparent;
		border: none;
		box-shadow: none;
		top: 60px;
		width: 100%;
		display: flex;
		justify-content: end;
	}

	.nav-container {
		justify-content: end !important;
	}

	.main-menu {
		position: absolute;
		top: 50px;
		right: 20px;
		background: var(--white);
		border-radius: 10px;
		box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
		flex-direction: column;
		align-items: flex-start;
		padding: 15px 20px;
		display: none;
		gap: 15px;
	}

	.main-menu.active {
		display: flex;
	}

	.principal-title {
		font-size: 80px;
	}
}

.hero {
	background-image: url("./assets/images/background.png");
	background-attachment: fixed;
	background-size: cover;
	background-position: center;
	padding: 60px 0;
	min-height: 100vh;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.hero > * {
	position: relative;
	z-index: 2;
}

/* .hero h1 {
	font-size: 32px;
	margin-bottom: 20px;
	color: #d52b1e;
} */

.hero p {
	font-size: 18px;
	margin-bottom: 30px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.hero-wave {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: auto;
	line-height: 0; /* Elimina espacio extra debajo de img */
}

.hero-wave img {
	display: block;
	width: 100%;
	height: auto;
}

.who-we-are {
	background-color: var(--light-gray);
}

.who-we-are {
	padding: 80px 20px;
}

.who-we-are h1 {
	font-size: 36px;
	font-weight: 700;
	color: #333;
	margin-bottom: 20px;
}

.who-we-are p {
	max-width: 700px;
	margin: 0 auto 30px auto;
	font-size: 18px;
	line-height: 1.6;
	color: #555;
}

.who-we-are-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 30px;
	background-color: var(--green-stem);
	color: var(--white);
	font-size: 16px;
	font-weight: 600;
	border-radius: 30px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease;
	position: relative;
	overflow: hidden;
}

.who-we-are-btn .arrow-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.who-we-are-btn:hover {
	background-color: var(--sunflower-yellow);
	color: var(--green-leaf);
	transform: translateY(-3px);
}

.who-we-are-btn:hover .arrow-icon {
	transform: rotate(90deg);
}

.who-we-are-image-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
}

.who-we-are-img {
	width: 415.99px;
	height: 277.33px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
	transition: transform 0.5s ease;
}

.who-we-are-image-wrapper:hover .who-we-are-img {
	transform: scale(1.05);
}

.who-we-are-caption {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 12px;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.who-we-are-caption::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	color: var(--green-stem);
	background-color: var(--green-stem);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.who-we-are-caption:hover::after {
	width: 100%;
}

.who-we-are-caption .arrow-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.who-we-are-caption:hover .arrow-icon {
	transform: rotate(90deg);
}

.who-we-are-image-wrapper:hover .who-we-are-caption::after {
	width: 100%;
}

.who-we-are-image-wrapper:hover .who-we-are-caption .arrow-icon {
	transform: rotate(90deg);
}

/*Our Services*/

.our-services {
	padding: 80px 20px;
	background: var(--light-gray);
}

.our-services h2 {
	font-size: 36px;
	font-weight: 700;
	color: black;
	margin-bottom: 20px;
}

.our-services .subtitle {
	max-width: 700px;
	margin: 0 auto 30px auto;
	font-size: 18px;
	line-height: 1.6;
	color: black;
	margin-top: 10px;
}

.our-services p {
	max-width: 700px;
	margin: 0 auto 30px auto;
	font-size: 18px;
	line-height: 1.6;
	color: #555;
	margin-top: 10px;
}

.service-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.service-card:hover {
	transform: translateY(-5px);
}

.service-image-wrapper {
	overflow: hidden;
	position: relative;
}

.service-img {
	width: 100%;
	transition: transform 0.5s ease;
	display: block;
}

.service-card:hover .service-img {
	transform: scale(1.05);
}

.service-caption {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	position: relative;
	justify-content: center;
}

.service-caption::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: var(--green-stem);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.service-card:hover .service-caption::after {
	width: 100%;
}

.service-caption .arrow-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.service-card:hover .service-caption .arrow-icon {
	transform: rotate(90deg);
}

.service-description {
	font-size: 16px;
	color: #666;
	padding: 0 15px 20px 15px;
	text-align: center;
	margin-top: 10px;
}

/*FAQ*/

.faq {
	padding: 80px 20px;
	background-color: #fff;
	text-align: center;
}

.faq h1 {
	font-size: 36px;
	font-weight: 700;
	color: #333;
	margin-bottom: 20px;
}

.faq p {
	max-width: 700px;
	margin: 0 auto 30px auto;
	font-size: 18px;
	line-height: 1.6;
	color: #555;
}

.faq-list {
	max-width: 800px;
	margin: 0 auto;
	text-align: left;
}

.faq-item {
	border-bottom: 1px solid #ddd;
}

.faq-question {
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	padding: 15px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: color 0.3s ease;
}

.faq-arrow {
	transition: transform 0.3s ease;
}

.faq-item.active .faq-arrow {
	transform: rotate(90deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
	max-height: 500px;
	padding: 10px 0;
}

.faq-answer p {
	font-size: 16px;
	color: #555;
	line-height: 1.5;
}

/*Footer*/

.site-footer {
	background-color: #333;
	color: #fff;
	padding: 20px 10px;
	font-size: 14px;
}

.site-footer p {
	margin: 0;
	color: #ccc;
}

.site-footer a {
	color: #fff;
	text-decoration: underline;
	transition: color 0.3s ease;
}

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

/*conatct*/

.contact {
	background-image: url("./assets/images/background.png");
	background-attachment: fixed;
	background-size: cover;
	background-position: top;
	padding: 60px 0;
	min-height: 55vh;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.contact > * {
	position: relative;
	z-index: 2;
}

/* .hero h1 {
	font-size: 32px;
	margin-bottom: 20px;
	color: #d52b1e;
} */

.contact p {
	font-size: 18px;
	margin-bottom: 30px;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}

.contact-wave {
	position: absolute;
	bottom: 0;
	width: 100%;
	height: auto;
	line-height: 0; /* Elimina espacio extra debajo de img */
}

.contact-wave img {
	display: block;
	width: 100%;
	height: auto;
}

/*fortmualrio*/

.contact-us {
	padding: 80px 20px;
	background-color: #f5f5f5;
	text-align: center;
}

.contact-us h1 {
	font-size: 36px;
	font-weight: 700;
	color: #333;
	margin-bottom: 20px;
}

.contact-us p {
	max-width: 700px;
	margin: 0 auto 30px auto;
	font-size: 18px;
	line-height: 1.6;
	color: #555;
}

.contact-form {
	text-align: left;
	max-width: 500px;
	margin: 0 auto;
}

.contact-form .form-group {
	margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--green-leaf);
}

.contact-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 30px;
	background-color: var(--green-stem);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 30px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-btn .arrow-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.contact-btn:hover {
	background-color: var(--sunflower-yellow);
	color: var(--green-leaf);
	transform: translateY(-3px);
}

.contact-btn:hover .arrow-icon {
	transform: rotate(90deg);
}

.consultation-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	font-weight: 600;
	color: #333;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	margin-top: 20px;
}

.consultation-link::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: var(--green-stem);
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.consultation-link:hover::after {
	width: 100%;
}

.consultation-link .arrow-icon {
	display: inline-block;
	transition: transform 0.3s ease;
}

.consultation-link:hover .arrow-icon {
	transform: rotate(90deg);
}

.portfolio-section {
	background: #c9c9c9;
	/* padding: 60px 30px; */
	position: relative;
}

.portfolio-container {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.portfolio-btn {
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	color: var(--green-stem);
	z-index: 2;
	transition: transform 0.2s;
}

.portfolio-btn:hover {
	transform: scale(1.2);
}

.portfolio-ticker {
	overflow: hidden;
	width: 85%;
	position: relative;
}

.portfolio-track {
	display: flex;
	width: fit-content;
	animation: scrollPortfolio 60s linear infinite;
}

@keyframes scrollPortfolio {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-50%);
	}
}

.portfolio-card {
	flex: 0 0 auto;
	width: 120px;
	height: 120px;
	margin: 0 20px;
	/* background: rgba(125, 125, 125, 0.196); */
	border-radius: 10px;
	/* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); */
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.3s;
}

.portfolio-card img {
	max-width: 80%;
	max-height: 80%;
}

.portfolio-card:hover {
	transform: scale(1.05);
}

@keyframes scrollTicker {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-100%);
	}
}

/* Modal */
.portfolio-modal {
	display: none;
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	align-items: center;
	justify-content: center;
	animation: fadeIn 0.3s ease;
}

.modal-content {
	background: white;
	padding: 20px;
	border-radius: 10px;
	max-width: 90%;
	max-height: 90%;
	text-align: center;
	position: relative;
}

.modal-content img {
	max-width: 100%;
	border-radius: 10px;
}

.close-btn {
	position: absolute;
	top: 10px;
	right: 15px;
	font-size: 1.5rem;
	cursor: pointer;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/*Work Section*/

.work-section {
	background-color: var(--blue-sky);
	padding: 80px 20px;
	color: var(--white);
	text-align: center;
}

.work-section h2 {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 20px;
}

.work-section p {
	max-width: 700px;
	margin: 0 auto 30px auto;
	font-size: 18px;
	line-height: 1.6;
}

.work-project {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 40px;
	margin-bottom: 60px;
	flex-wrap: wrap;
}

.work-project:nth-child(even) {
	flex-direction: row-reverse;
}

.iframe-scaler {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
	width: 600px;
	max-width: 100%;
	height: 480px;
	flex-shrink: 0;
	background: var(--light-gray);
	position: relative;
}

.iframe-scaler iframe {
	width: 1200px;
	height: 1000px;
	transform: scale(0.5);
	transform-origin: top left;
	border: none;
}

.iframe-description-wrapper {
	max-width: 400px;
	height: 480px;
	background-color: var(--light-gray);
	border-radius: 12px;
	box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
	text-align: left;
	color: black;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 10px 20px;
}

.iframe-description-wrapper img {
	width: 100px;
	border-radius: 8px;
}

.iframe-description-wrapper h3 {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
}

.iframe-description-wrapper p {
	font-size: 16px;
	line-height: 1.6;
}

.work-section-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background-color: var(--green-stem);
	color: var(--white);
	font-size: 16px;
	font-weight: 600;
	border-radius: 30px;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.work-section-btn:hover {
	background-color: var(--sunflower-yellow);
	color: var(--green-leaf);
	transform: translateY(-3px);
}

@media (max-width: 992px) {
	.work-project {
		flex-direction: column !important;
	}
	.iframe-scaler {
		width: 100%;
		height: 300px;
	}
	.iframe-scaler iframe {
		transform: scale(0.35);
	}
	.iframe-description-wrapper {
		align-items: center;
		text-align: center;
	}
}
