/* ===============================================
   NAVBAR Y HERO DEL INDEX PRINCIPAL
   =============================================== */

/* Variables CSS */
:root {
	--primary-color: #6C1739;
	--secondary-color: #8a1f4a;
	--white: #ffffff;
	--black: #333333;
	--gray: #666666;
	--light-gray: #f8f9fa;
}

/* Navbar Styles */
.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(108, 23, 57, 0.95);
	backdrop-filter: blur(10px);
	z-index: 1000;
	transition: all 0.3s ease;
	padding: 1rem 0;
}

.navbar.scrolled {
	background: rgba(108, 23, 57, 0.98);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-logo {
	display: flex;
	align-items: center;
}

.nav-logo-img {
	height: 40px;
	filter: brightness(0) invert(1);
	transition: all 0.3s ease;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 2rem;
}

.nav-link {
	color: var(--white);
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link:hover,
.nav-link.active {
	color: var(--white);
}

.nav-link::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: var(--white);
	transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
	width: 100%;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	cursor: pointer;
}

.nav-toggle span {
	width: 25px;
	height: 3px;
	background: var(--white);
	margin: 3px 0;
	transition: 0.3s;
}

/* Hero Section */
.hero {
	height: 100vh;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero-bg-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	transform: scale(1.1);
}

.hero-bg-img.active {
	opacity: 1;
	animation: heroZoom 20s ease-in-out infinite;
}

@keyframes heroZoom {
	0%, 100% { transform: scale(1.1); }
	50% { transform: scale(1.15); }
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(44, 85, 48, 0.6);
	z-index: 2;
}

.hero-content {
	position: relative;
	z-index: 3;
	text-align: center;
	color: var(--white);
	max-width: 800px;
	padding: 0 2rem;
}

.hero-logos {
	margin-bottom: 2rem;
}

.hero-logo-main {
	height: 80px;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
}

.hero-logo-main.hero-logo-enlarged {
	height: 120px;
	margin-bottom: 2rem;
}

.hero-logo-corfo {
	height: 40px;
	margin-left: 1rem;
}

.hero-cta {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 2rem;
}

.btn {
	padding: 1rem 2rem;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
	display: inline-block;
}

.btn-primary {
	background: linear-gradient(135deg, #6C1739, #8a1f4a);
	color: var(--white);
	box-shadow: 0 4px 15px rgba(108, 23, 57, 0.3);
}

.btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(108, 23, 57, 0.4);
}

.btn-secondary {
	background: transparent;
	color: var(--white);
	border: 2px solid var(--white);
}

.btn-secondary:hover {
	background: var(--white);
	color: var(--primary-color);
}

.scroll-indicator {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
}

.scroll-arrow {
	width: 30px;
	height: 30px;
	border: 2px solid var(--white);
	border-top: none;
	border-left: none;
	transform: rotate(225deg);
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) rotate(225deg) translateY(0); }
	40% { transform: translateX(-50%) rotate(225deg) translateY(-10px); }
	60% { transform: translateX(-50%) rotate(225deg) translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
	.nav-menu {
		position: fixed;
		left: -100%;
		top: 70px;
		flex-direction: column;
		background-color: rgba(108, 23, 57, 0.98);
		width: 100%;
		text-align: center;
		transition: 0.3s;
		padding: 2rem 0;
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-toggle {
		display: flex;
	}

	.nav-toggle.active span:nth-child(1) {
		transform: rotate(-45deg) translate(-5px, 6px);
	}

	.nav-toggle.active span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle.active span:nth-child(3) {
		transform: rotate(45deg) translate(-5px, -6px);
	}

	.hero-content {
		padding: 0 1rem;
	}

	.hero-logo-main {
		height: 60px;
	}
	
	.hero-logo-main.hero-logo-enlarged {
		height: 90px;
	}

	.hero-cta {
		flex-direction: column;
		align-items: center;
	}

	.btn {
		width: 100%;
		max-width: 300px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.nav-container {
		padding: 0 1rem;
	}

	.nav-logo-img {
		height: 35px;
	}

	.hero-logo-main {
		height: 50px;
	}
	
	.hero-logo-main.hero-logo-enlarged {
		height: 75px;
	}

	.scroll-arrow {
		width: 25px;
		height: 25px;
	}
}
