:root {
	--primary-color: #1b99c0;
	--fondo-blanco: #fff;
	--fondo-color-claro: #f5f5f5c2;
	--dark-text: #7a7a7a;
	--light-text: #fff;
	--overlay-color: rgba(0, 0, 0, 0.35);
	--nav-bg: rgba(0, 0, 0, 0.55);
	--transition-fast: 0.3s;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Lexend Deca", Helvetica, sans-serif;
	line-height: 1.6;
	color: var(--light-text);
	background-color: var(--fondo-color-claro);
	scroll-behavior: smooth;
	overflow-x: hidden;
}

.justifica {
	text-align: justify;
}

.centra {
	text-align: center;
}

a {
	color: var(--light-text);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

/* Top bar */
.top-bar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	color: var(--light-text);
	z-index: 1000;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

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

.top-bar .icon {
	margin-right: 0.3rem;
}

.top-bar .top-left,
.top-bar .top-right {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.top-bar .lang-flag img {
	display: block;
	/* vertical-align: middle; */
	border-radius: 2px;
}

/* Navigation */
#mainNav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 999;
	background-color: transparent;
	transition: background-color var(--transition-fast);
	margin-top: 2.8rem;
}
#mainNav.scrolled {
	background-color: rgb(0 0 0 / 83%);
}

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

.brand a {
	color: inherit;
	text-decoration: none;
}

.brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nav-logo {
	width: 150px;
	object-fit: cover;
}

.brand-name {
	font-size: 1.3rem;
	font-weight: bold;
	color: var(--light-text);
}

.menu-toggle {
	display: none;
	font-size: 2rem;
	background: none;
	border: none;
	color: var(--light-text);
	cursor: pointer;
}

.nav-links {
	list-style: none;
	display: flex;
	gap: 1.5rem;
	/* gap: 1.2rem; */
}

.nav-links li {
	position: relative;
	margin-top: 15px;
}

.nav-links li a {
	display: flex;
	align-items: center;
	height: 1rem;
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.05rem;
}

/* Submenu */
.submenu {
	position: absolute;
	left: 0;
	top: 100%;
	background-color: rgb(15 1 40);
	list-style: none;
	min-width: 180px;
	padding: 1.5rem 0;
	display: none;
	/* margin-top: 0.5rem; */
}

.submenu li a {
	display: flex; /*era: block*/
	padding: 1.2rem 1rem;
	white-space: nowrap;
	font-size: 0.85rem;
}

.submenu li a:hover {
	background-color: var(--primary-color);
	color: var(--fondo-blanco);
}

.has-submenu:hover > .submenu {
	display: block;
}

/* Responsive nav */
@media (max-width: 768px) {
	.menu-toggle {
		display: block;
	}
	.nav-links {
		position: absolute;
		top: 100%;
		right: 0;
		width: 100%;
		background-color: rgb(1 0 8 / 90%);
		flex-direction: column;
		align-items: flex-start;
		padding: 1rem;
		gap: 0;
		display: none;
	}
	.nav-links li {
		width: 100%;
		margin-top: 0px;
	}
	@media (max-width: 768px) {
		.nav-links li a {
			display: block;
			padding-top: 20px;
			width: 100%;
			height: 50px;
		}
	}
	#mainNav.open .nav-links {
		display: flex;
	}
	/* Mobile submenu shows inline */
	.has-submenu > .submenu {
		position: static;
		background: transparent;
		padding: 0;
	}
	.has-submenu:hover > .submenu {
		display: none;
	}
}

/* Hero section */
#hero {
	font-family: "Lexend Deca", sans-serif;
	font-optical-sizing: auto;
	font-weight: 500;
	font-style: normal;
	height: 100vh;
	min-height: 480px;
	background-image: url(../img/hero.jpg);
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-attachment: fixed;
}

.hero-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--overlay-color);
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 900px;
	padding: 0 1rem;
}

.hero-title {
	font-size: 4rem;
	margin-bottom: 0.5rem;
	color: #fff;
	font-weight: 300;
}

.hero-subtitle {
	font-size: 1.6rem;
	margin-bottom: 1.5rem;
	color: #cccccc;
	font-weight: 200;
}

.down-arrow {
	font-size: 4rem;
	color: var(--primary-color);
	display: inline-block;
	margin-top: 2rem;
	transition: color var(--transition-fast);
}

.down-arrow:hover {
	color: var(--light-text);
}

@media (max-width: 768px) {
	.hero-title {
		font-size: 2.5rem;
	}
	.hero-subtitle {
		font-size: 1.3rem;
	}
}

/* Intro section */
.intro-section {
	background-color: var(--fondo-blanco);
	padding: 4rem 1rem;
	text-align: center;
}

.intro-container {
	max-width: 800px;
	margin: 0 auto;
}

.intro-title {
	font-size: 2rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
	/* font-style: italic; */
	font-weight: 300;
}

.intro-text {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: var(--dark-text);
	font-weight: 200;
}

.btn {
	display: inline-block;
	padding: 0.6rem 1.2rem;
	border: 2px solid var(--primary-color);
	color: var(--primary-color);
	border-radius: 4px;
	transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn:hover {
	background-color: var(--primary-color);
	color: var(--fondo-blanco);
}

/* Categories section - Carrusel con Owl Carousel */
.categories-section {
	padding: 4rem 0;
	background: transparent;
	position: relative;
}

.owl-carousel .category-card {
	display: flex;
	height: 30rem;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	transition: transform var(--transition-fast);
	margin: 0 10px;
}

.category-card:hover {
	transform: scale(1.02);
}

.category-card p {
	font-size: 1.2rem;
}

.category-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.43);
	display: flex;
	flex-direction: column; /* 👈 Esto alinea h4 y p en vertical */
	align-items: center;
	justify-content: center;
	text-align: center;
	transition: background var(--transition-fast);
	padding: 2rem;
}

.category-card:hover .category-overlay {
	background: rgba(0, 0, 0, 0.01);
	/* background: rgb(5 103 255 / 12%); */
}

.category-overlay h4 {
	font-size: 1.4rem;
	color: var(--light-text);
	text-transform: uppercase;
	line-height: 1.3;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Estilos para navegación de Owl Carousel */
.owl-nav {
	position: absolute;
	top: 50%;
	width: 100%;
	transform: translateY(-50%);
	display: flex;
	justify-content: space-between;
	pointer-events: none;
}

.owl-nav button {
	pointer-events: all;
	background: rgba(0, 0, 0, 0.5) !important;
	border: none !important;
	color: var(--primary-color) !important;
	font-size: 2rem !important;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 15px !important;
}

.owl-nav button:hover {
	background: rgba(0, 0, 0, 0.8) !important;
	color: var(--light-text) !important;
}

/* Dots de navegación */
.owl-dots {
	margin-top: 1.5rem;
	text-align: center;
	display: none;
}

.owl-dots button.owl-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5) !important;
	margin: 0 5px;
}

.owl-dots button.owl-dot.active {
	background: var(--primary-color) !important;
}

/* Ajustes responsivos para el texto de las tarjetas */
@media (max-width: 767px) {
	.owl-carousel .category-card {
		height: 250px;
	}
	.category-overlay h4 {
		font-size: 1.2rem;
	}
}

/* Contact section */
.contact-section {
	position: relative;
	background-image: url(../img/footer.jpg);
	background-size: cover;
	background-position: center;
	padding: 4rem 1rem;
	color: var(--light-text);
}

.contact-wrapper {
	position: relative;
	z-index: 2;
	max-width: 1200px;
	margin: 0 auto;
}

.contact-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--overlay-color);
	z-index: 1;
}

/* Top branding area */
.contact-top {
	text-align: center;
	margin-bottom: 1.5rem;
}

.contact-logo {
	height: 150px;
	object-fit: cover;
	margin: 0 auto 0.5rem;
}

.contact-brand {
	font-size: 2rem;
	color: var(--primary-color);
	margin-bottom: 0.3rem;
}

.contact-tagline {
	font-size: 1rem;
	color: #ccc;
}

/* Horizontal divider */
.contact-divider {
	height: 2px;
	background-color: var(--primary-color);
	width: 80%;
	margin: 1rem auto 2rem;
}

/* Columns layout */
.contact-columns {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.contact-col h4 {
	font-size: 1.2rem;
	color: var(--primary-color);
	margin-bottom: 0.8rem;
}

.contact-col p {
	font-size: 0.9rem;
	color: #ddd;
	margin-bottom: 0.6rem;
}

.contact-col a {
	color: var(--light-text);
}

.contact-col a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

/* Vertical separators between columns */
.contact-columns .contact-col:not(:first-child) {
	border-left: 1px solid var(--primary-color);
	padding-left: 1.5rem;
}

/* Map container inside contact section */
.contact-map .map-container {
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 2px solid var(--primary-color);
	overflow: hidden;
	border-radius: 6px;
}

.contact-map .map-container iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

/* Footer note */
.footer-note {
	text-align: center;
	font-size: 0.8rem;
	color: #aaa;
	padding-top: 1rem;
}

/* WhatsApp floating button */
.whatsapp-float {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	/* background-color: #25d366; */
	color: var(--light-text);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
	z-index: 999;
	transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
	transform: scale(1.05);
}

.lang-dropdown {
	position: relative;
	display: inline-block;
}

.lang-selected {
	background: none;
	border: none;
	cursor: pointer;
	padding: 2px;
}

.lang-options {
	display: none;
	position: absolute;
	right: 0;
	background: rgba(0, 0, 0, 0.85);
	padding: 5px;
	border-radius: 6px;
}

.lang-options a {
	display: block;
	margin: 3px 0;
}

.lang-dropdown:hover .lang-options {
	display: block;
}

.top-bar.scrolled {
	background-color: #13afd3;
	color: #000 !important;
}

.top-bar.scrolled a {
	/* background-color: #f39928; */
	color: #000 !important;
}

.nav-logo {
	transition: width var(--transition-fast);
}
#mainNav.scrolled .nav-logo {
	width: 120px;
}

.tour-hero-content h1 {
	text-transform: uppercase;
}

footer h4 {
	color: var(--primary-color);
}

footer b {
	color: var(--primary-color);
}

footer a:hover {
	color: #77dfff !important;
}

/* GRID */
/* Grid de categorías sin Owl */
.categories-grid .category-card {
	display: flex;
	align-items: flex-end;
	height: 30rem; /* como el original */
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	transition: transform var(--transition-fast, 0.3s), box-shadow var(--transition-fast, 0.3s);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
	.categories-grid .category-card {
		height: 250px;
	}
}

/* Overlay con gradiente para legibilidad */
.categories-grid .category-card .category-overlay {
	width: 100%;
	padding: 1.1rem 1.2rem 1.2rem;
	color: var(--light-text, #fff);
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.35) 50%,
		rgba(0, 0, 0, 0) 100%
	);
}

/* Título y texto (reciclando tu estilo) */
.categories-grid .category-card .category-overlay h4 {
	font-size: 1.4rem;
	text-transform: uppercase;
	line-height: 1.25;
	margin: 0 0 0.4rem 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.categories-grid .category-card .category-overlay p {
	font-size: 1.05rem; /* un pelín menor para caber con el botón */
	margin: 0 0 0.75rem 0;
}

/* Interacción */
.categories-grid .category-card:hover {
	transform: translateY(-4px) scale(1.01);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Botón (respetando tu clase 'btn' existente) */
.categories-grid .category-card .btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.45);
	color: var(--light-text, #fff);
	text-decoration: none;
	backdrop-filter: blur(2px);
	transition: background 0.2s, transform 0.2s;
}

.categories-grid .category-card .btn:hover {
	background: rgba(255, 255, 255, 0.22);
	transform: translateY(-1px);
}

/* FIN GRID */

#transfers {
	background-color: var(--fondo-blanco);
}

#categories,
#transfers,
#galeria {
	scroll-margin-top: 120px;
}

/* Banderas */
.lang-flags {
	display: flex;
	gap: 0.5rem; /* Espacio entre banderas */
	align-items: center;
}

.lang-flags img {
	cursor: pointer;
	transition: transform 0.2s ease-in-out;
}

.lang-flags img:hover {
	transform: scale(1.1);
}
