/* styles.css */
:root {
	--primary: #004085;
	--primary-light: #0066cc;
	--primary-dark: #002f5e;
	--secondary: #ffc107;
	--secondary-light: #ffdb4d;
	--white: #ffffff;
	--light: #f8f9fa;
	--dark: #333333;
	--grey: #6c757d;
	--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
	--transition: all 0.3s ease;
}

body {
	font-family: "Poppins", sans-serif;
	background-color: var(--light);
	color: var(--dark);
	overflow-x: hidden;
	/* Prevent content from being covered by fixed footer */
	padding-bottom: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
}

.hero-title {
	font-weight: 700;
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: var(--primary-dark);
}

@media (max-width: 768px) {
	.hero-title {
		font-size: 1.8rem;
	}
}

/* Header Styling */
.custom-navbar {
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--primary-dark) 100%
	);
	padding: 0.75rem 0;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: var(--transition);
}

/* Navbar shrink on scroll */
.custom-navbar.scrolled {
	padding: 0.4rem 0;
	box-shadow: var(--shadow-hover);
}

.navbar-brand img {
	transition: var(--transition);
	height: 50px; /* Fixed height for logo */
	width: auto;
}

.navbar-brand {
	display: flex;
	align-items: center;
}

.navbar-brand:hover img {
	transform: scale(1.05);
}

.custom-nav-link {
	color: var(--white) !important;
	font-weight: 500;
	padding: 0.5rem 1rem !important;
	border-radius: 4px;
	margin: 0 0.2rem;
	transition: var(--transition);
	position: relative;
}

.custom-nav-link:hover {
	background-color: rgba(255, 255, 255, 0.15);
	color: var(--secondary) !important;
	transform: translateY(-2px);
}

.custom-nav-link::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 50%;
	background-color: var(--secondary);
	transition: var(--transition);
}

.custom-nav-link:hover::after {
	width: 80%;
	left: 10%;
}

/* Active link style (Scrollspy) */
.navbar-nav .nav-link.active {
	color: var(--secondary) !important;
	background-color: rgba(255, 255, 255, 0.15);
}

.navbar-nav .nav-link.active::after {
	width: 80%;
	left: 10%;
}

/* Estilos para dropdowns */
.navbar .dropdown-menu {
	margin-top: 0;
	box-shadow: var(--shadow);
	border-radius: 8px;
	background: var(--primary-dark);
}

.navbar .dropdown-item {
	color: var(--white);
	padding: 0.7rem 1.5rem;
	transition: var(--transition);
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
	background: rgba(255, 255, 255, 0.1);
	color: var(--secondary);
}

/* Ajustes específicos para móvil */
@media (max-width: 991px) {
	.navbar .dropdown-menu {
		background: transparent;
		border: none;
		box-shadow: none;
		padding-left: 1rem;
	}

	.navbar .dropdown-item {
		color: var(--white);
		padding: 0.5rem 1rem;
	}

	.navbar .dropdown-toggle::after {
		float: right;
		margin-top: 10px;
	}

	.navbar .dropdown-menu.show {
		display: block;
	}
}

/* Dropdown on hover para desktop */
@media (min-width: 992px) {
	.navbar .dropdown-menu {
		margin-top: 0;
		box-shadow: var(--shadow);
		border-radius: 8px;
	}
}

/* Carousel Styling */
.custom-carousel {
	margin-top: 1rem;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.carousel-inner {
	border-radius: 10px;
}

.carousel-item {
	position: relative;
}

/* Responsive image sizing for carousel (controlled via CSS, not inline) */
.custom-carousel .carousel-item img {
	max-height: 80vh;
	width: auto;
	max-width: 100%;
	margin: 0 auto;
	object-fit: contain;
}

.carousel-caption {
	background: rgba(0, 64, 133, 0.7);
	border-radius: 8px;
	padding: 1rem;
	bottom: 2rem;
	max-width: 75%;
	margin: 0 auto;
	left: 0;
	right: 0;
}

.carousel-indicators {
	bottom: 0.5rem;
}

.carousel-indicators button {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin: 0 5px;
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
}

.carousel-indicators .active {
	background-color: var(--secondary);
	transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
	width: 50px;
	height: 50px;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	top: 50%;
	transform: translateY(-50%);
	margin: 0 1rem;
}

/* Section Styling */
.section-title {
	position: relative;
	display: inline-block;
	margin-bottom: 2rem;
	color: var(--primary-dark);
	font-weight: 700;
}

.section-title::after {
	content: "";
	position: absolute;
	width: 50%;
	height: 4px;
	background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
	bottom: -10px;
	left: 25%;
	border-radius: 2px;
}

.section-container {
	padding: 4rem 0;
	position: relative;
}

.section-container::before {
	content: "";
	position: absolute;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--grey), transparent);
	top: 0;
}

/* Card Styling */
.custom-card {
	border: none;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: var(--transition);
	height: 100%;
	background-color: var(--white);
}

.custom-card:hover {
	transform: translateY(-10px);
	box-shadow: var(--shadow-hover);
}

.card-title {
	color: var(--primary);
	border-bottom: 2px solid var(--secondary);
	padding-bottom: 0.5rem;
	margin-bottom: 1rem;
}

.card-icon {
	font-size: 2.5rem;
	color: var(--primary);
	margin-bottom: 1rem;
}

/* Gallery Styling */
.gallery-container {
	margin: 2rem 0;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	margin-bottom: 2rem;
	box-shadow: var(--shadow);
	transition: var(--transition);
}

.gallery-item img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	transition: var(--transition);
}

.gallery-item:hover img {
	transform: scale(1.1);
}

.gallery-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(
		0deg,
		rgba(0, 64, 133, 0.8) 0%,
		rgba(0, 64, 133, 0) 100%
	);
	color: var(--white);
	padding: 1.5rem 1rem 1rem;
	transform: translateY(100%);
	transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
	transform: translateY(0);
}

.gallery-title {
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
	background: linear-gradient(
		135deg,
		rgba(0, 64, 133, 0.05) 0%,
		rgba(0, 64, 133, 0.1) 100%
	);
	border-radius: 10px;
	padding: 2rem;
	box-shadow: var(--shadow);
}

.contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.contact-icon {
	margin-right: 1rem;
	width: 40px;
	height: 40px;
	background-color: var(--primary);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Footer Styling */
#footer {
	position: fixed;
	bottom: 0;
	width: 100%;
	transition: bottom 0.3s;
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--primary-dark) 100%
	);
	color: var(--white);
	font-size: 0.9rem;
	z-index: 100;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.footer-links a {
	color: var(--secondary);
	text-decoration: none;
	margin-left: 1.5rem;
	transition: var(--transition);
	position: relative;
}

.footer-links a:hover {
	color: var(--white);
}

.footer-links a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 1px;
	bottom: -2px;
	left: 0;
	background-color: var(--white);
	transition: var(--transition);
}

.footer-links a:hover::after {
	width: 100%;
}

/* Animations */
.fade-in {
	animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

.pulse {
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}

	100% {
		transform: scale(1);
	}
}

/* Scroll to top button */
.scroll-top {
	position: fixed;
	bottom: 70px;
	right: 20px;
	width: 40px;
	height: 40px;
	background-color: var(--primary);
	color: var(--white);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transition: var(--transition);
	z-index: 99;
}

.scroll-top.active {
	opacity: 1;
	visibility: visible;
}

.scroll-top:hover {
	background-color: var(--primary-light);
	transform: translateY(-5px);
}

/* Utilities */
.bg-light-blue {
	background-color: rgba(0, 64, 133, 0.05);
}

.text-primary-custom {
	color: var(--primary);
}

.text-secondary-custom {
	color: var(--secondary);
}

.btn-primary-custom {
	background: linear-gradient(
		135deg,
		var(--primary) 0%,
		var(--primary-dark) 100%
	);
	border: none;
	color: var(--white);
	padding: 0.6rem 1.5rem;
	border-radius: 30px;
	font-weight: 500;
	transition: var(--transition);
	box-shadow: var(--shadow);
}

.btn-primary-custom:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-hover);
	background: linear-gradient(
		135deg,
		var(--primary-light) 0%,
		var(--primary) 100%
	);
}

.btn-outline-primary-custom {
	background: transparent;
	border: 2px solid var(--primary);
	color: var(--primary);
	padding: 0.5rem 1.5rem;
	border-radius: 30px;
	font-weight: 500;
	transition: var(--transition);
}

.btn-outline-primary-custom:hover {
	background-color: var(--primary);
	color: var(--white);
	transform: translateY(-3px);
	box-shadow: var(--shadow);
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.hero-title {
		font-size: 2.1rem;
	}
	.carousel-caption {
		max-width: 85%;
		padding: 0.75rem;
	}
}

/* Tablet and medium devices (landscape tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
	.navbar-collapse {
		background-color: var(--primary-dark);
		padding: 1rem;
		margin-top: 0.5rem;
		border-radius: 4px;
	}
	
	.navbar-nav {
		width: 100%;
	}
	
	.nav-item {
		margin: 0.25rem 0;
	}
	
	.custom-nav-link {
		padding: 0.5rem 1rem !important;
		margin: 0.25rem 0;
		display: block;
	}
	
	.navbar-toggler {
		padding: 0.25rem 0.5rem;
	}
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 767.98px) {
	.hero-title {
		font-size: 1.8rem;
	}
	/* Make footer non-fixed on small screens to avoid covering content */
	#footer {
		position: static;
	}
	body {
		padding-bottom: 20px;
	}
	/* Smaller carousel height on mobile */
	.custom-carousel .carousel-item img {
		max-height: 60vh;
		width: auto;
		max-width: 100%;
	}
	.carousel-caption {
		bottom: 1rem;
		padding: 0.6rem 0.8rem;
		max-width: 90%;
	}
	/* Gallery image height adjustment */
	.gallery-item img {
		height: 200px;
	}
}

@media (max-width: 576px) {
	.hero-title {
		font-size: 1.6rem;
	}
	.carousel-caption {
		font-size: 0.85rem;
		bottom: 0.75rem;
	}
	.gallery-item img {
		height: 160px;
	}
	.custom-carousel .carousel-item img {
		height: clamp(200px, 40vh, 460px);
	}
}
