@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

body {
	line-height: 1.5;
	font-family: 'Poppins', sans-serif;
	font-weight: 400;
	overflow-x: hidden;
}

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

:before,
:after {
	box-sizing: border-box;
}

/* .container {
    max-width: 1200px;
    margin: auto;
} */

.v-center {
	align-items: center;
}

ul {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

a {
	text-decoration: none;
}

/* ---------------- HEADER ---------------- */
.header {
	display: block;
	width: 100%;
	position: sticky;
	z-index: 99;
	top: 18px;
	padding: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.scrolled .header {
	background-color: #3b4048;
}

.scrolled .header .menu>ul>li>a {
	color: #fff;
	transition: 0.4s ease;
}

@media (max-width: 768px) {
	.scrolled .header .menu>ul>li>a {
		color: #000 !important;
		transition: 0.4s ease;
	}
}

.scrolled .contactInfo {
	background-color: #c9c9c9;
	color: #333;
}

.scrolled .contactInfo a {
	color: #333;
}

.header .item-left {
	flex: 0 0 17%;
}

.header .logo a {
	font-size: 30px;
	color: #000;
	font-weight: 700;
	text-decoration: none;
}

.header .item-center {
	flex: 0 0 66%;
}

.header .item-right {
	flex: 0 0 17%;
	display: flex;
	justify-content: flex-end;
}

.header .item-right a {
	text-decoration: none;
	font-size: 16px;
	color: #fff;
	display: inline-block;
	margin-left: 10px;
	transition: color 0.3s ease;
}

.header .menu>ul>li {
	display: inline-block;
	line-height: 50px;
	margin-left: 25px;
}

.header .menu>ul>li>a {
	font-size: 15px;
	color: #fff;
	position: relative;
	text-transform: capitalize;
	transition: color 0.3s ease;
	font-family: serif;
	font-weight: 700;
	text-decoration: none;
}

.header .menu>ul>li>a:hover {
	color: #fff;
}

.header .menu>ul>li>a>i {
	font-size: 10px;
	font-weight: 600;
}

.header .menu>ul>li .sub-menu {
	position: absolute;
	z-index: 500;
	background-color: #fff;
	box-shadow: -2px 2px 70px -25px rgba(0, 0, 0, 0.3);
	padding: 20px 30px;
	transition: all 0.5s ease;
	margin-top: 25px;
	opacity: 0;
	visibility: hidden;
}

/* ---------------- CONTACT INFO ---------------- */
.contactInfo {
	text-align: center;
	background: #333;
	font-size: 11px;
	color: #fff;
	height: 22px;
	padding-top: 0.4em;
	z-index: 100 !important;
	position: sticky;
	top: 0;
}

.contactInfo a {
	color: #fff;
	text-decoration: none;
}

.contactInfo a:hover {
	color: #9bb1ff;
	transition: 0.3s ease;
}

/* Submenús Desktop */
@media (min-width: 992px) {
	.header .menu>ul>li.menu-item-has-children:hover .sub-menu {
		margin-top: 0;
		visibility: visible;
		opacity: 1;
	}
}

.header .menu>ul>li .sub-menu>ul>li {
	line-height: 1;
}

.header .menu>ul>li .sub-menu>ul>li>a {
	display: inline-block;
	padding: 10px 0;
	font-size: 14px;
	color: #555;
	transition: 0.4s ease;
	text-decoration: none;
	text-transform: capitalize;
	border-bottom: 2px solid transparent;
	font-weight: 600;
}

.header .menu>ul>li .sub-menu>ul>li>a:hover {
	border-bottom: 2px solid #007bff;
	transition: 0.4s ease;
}

/* Mega Menu */
.header .menu>ul>li .single-column-menu {
	min-width: 550px;
	max-width: 350px;
	margin-left: -15em;
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li {
	display: block;
	line-height: 1;
}

.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a {
	padding: 10px 0;
	display: inline-block;
	font-size: 15px;
	color: #555;
	transition: color 0.3s ease;
}

.header .menu>ul>li .sub-menu.mega-menu {
	left: 50%;
	transform: translateX(-50%);
}

.header .menu>ul>li .sub-menu.mega-menu-column-4 {
	background: #e6e6e6;
	max-width: 1100px;
	width: 100%;
	display: ruby;
	flex-wrap: wrap;
	padding: 4px;
	margin: auto;
	margin-top: 3.2em !important;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	transform: translateX(-50%);

	overflow: visible !important;
	/* Importante */
	z-index: 9999;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item {
	padding: 0 5px;
	text-align: center;
	width: 150px;
	height: 160px;
	overflow: hidden;

	overflow: visible !important;
	position: relative;
	z-index: 10000;
}


.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item a {
	text-decoration: none;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item img {
	max-width: 140px;
	height: 110px;
	object-fit: cover;
	margin-top: 10px;
	transition: transform 0.4s ease;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item img:hover {
	transform: scale(1.1);
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item .title {
	background: #39536d;
	font-size: 12px;
	color: #fff;
	font-weight: 500;
	line-height: 1;
	padding: 10px 0;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item.text-center .title {
	text-align: center;
}

.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item img {
	width: 100%;
	vertical-align: middle;
	margin-top: 10px;
}

/* Sub Menús generales */
.sub-menu {
	display: flex;
	flex-direction: row;
	padding: 0;
	margin: 0;
}

.sub-menu ul {
	display: flex;
	flex-direction: row;
	list-style: none;
}

.sub-menu ul li {
	margin-right: 1em;
}

@media (max-width: 767px) {
	.sub-menu ul {
		flex-direction: column;
		margin-top: 3em;
		padding-left: 0;
	}

	.sub-menu ul li {
		margin-right: 0;
	}
}

/* ---------------- FOOTER ---------------- */
footer h4 {
	font-weight: bold;
	font-size: 16px;
	position: relative;
	margin-bottom: 1.8rem;
}

footer h4::before {
	content: "";
	display: block;
	width: 30px;
	height: 2px;
	background-color: #fcfcfc;
	position: absolute;
	left: 0;
	bottom: -10px;
}

footer .contact p i,
footer i {
	font-size: 12px;
}

footer p {
	line-height: 1em;
}

footer .socials a {
	font-size: 22px;
	transition: 0.4s ease;
	margin-right: 0.4em;
}

footer .socials a:hover i {
	color: #869faf;
	transition: 0.4s ease;
}

footer .linkKantu {
	color: #fff;
	text-decoration: none;
	transition: 0.4s ease;
}

footer .linkKantu:hover {
	color: #869faf;
	transition: 0.4s ease;
}

.mobile-menu-head {
	display: none !important;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 991px) {
	.header .item-center {
		order: 3;
		flex: 0 0 100%;
	}

	.header .item-left,
	.header .item-right {
		flex: 0 0 auto;
		width: 50%;
	}

	.v-center {
		justify-content: space-between;
	}

	.header .mobile-menu-trigger {
		display: flex;
		height: 30px;
		width: 30px;
		margin-left: 15px;
		cursor: pointer;
		align-items: center;
		justify-content: center;
	}

	.header .mobile-menu-trigger span {
		display: block;
		height: 2px;
		background-color: #fff;
		width: 24px;
		position: relative;
	}

	.header .mobile-menu-trigger span:before,
	.header .mobile-menu-trigger span:after {
		content: '';
		position: absolute;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: #fff;
	}

	.header .mobile-menu-trigger span:before {
		top: -6px;
	}

	.header .mobile-menu-trigger span:after {
		top: 6px;
	}

	.header .item-right {
		align-items: center;
	}

	.header .menu {
		position: fixed;
		width: 320px;
		background-color: #fff;
		left: 0;
		top: 0;
		height: 100%;
		overflow: hidden;
		transform: translate(-100%);
		transition: all 0.5s ease;
		z-index: 1099;
		margin-top: 1.4em;
	}

	.header .menu.active {
		transform: translate(0%);
	}

	.header .menu>ul>li {
		line-height: 1;
		margin: 0;
		display: block;
	}

	.header .menu>ul>li>a {
		line-height: 50px;
		height: 50px;
		padding: 0 50px 0 15px;
		display: block;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		color: #000;
	}

	.header .menu>ul>li>a i {
		position: absolute;
		height: 50px;
		width: 50px;
		top: 0;
		right: 0;
		text-align: center;
		line-height: 50px;
		transform: rotate(-90deg);
	}

	.header .menu .mobile-menu-head {
		display: flex;
		height: 50px;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
		justify-content: space-between;
		align-items: center;
		position: sticky;
		background-color: #fff;
		top: 0;
		z-index: 501;
	}

	.header .menu .mobile-menu-head .go-back {
		width: 50px;
		border-right: 1px solid rgba(0, 0, 0, 0.1);
		cursor: pointer;
		text-align: center;
		color: #000;
		font-size: 16px;
		display: none;
	}

	.header .menu .mobile-menu-head.active .go-back {
		display: block;
	}

	.header .menu .mobile-menu-head.active .go-back {
		display: block;
	}

	.header .menu .mobile-menu-head .current-menu-title {
		font-size: 15px;
		font-weight: 500;
		color: #000;
	}

	.header .menu .mobile-menu-head .mobile-menu-close {
		height: 50px;
		width: 50px;
		border-left: 1px solid rgba(0, 0, 0, 0.1);
		cursor: pointer;
		line-height: 50px;
		text-align: center;
		color: #000;
		font-size: 25px;
	}


	.header .menu .menu-main {
		height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
	}

	.header .menu>ul>li .sub-menu.mega-menu,
	.header .menu>ul>li .sub-menu {
		visibility: visible;
		opacity: 1;
		position: absolute;
		box-shadow: none;
		margin: 0;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		padding-top: 15px;
		display: none;
		transform: translateX(0%);
		overflow-y: auto;
		max-width: none;
		min-width: auto;
	}

	.header .menu>ul>li .sub-menu.active {
		display: block;
	}

	@keyframes slideLeft {
		0% {
			opacity: 0;
			transform: translateX(100%);
		}

		100% {
			opacity: 1;
			transform: translateX(0%);
		}
	}

	@keyframes slideRight {
		0% {
			opacity: 1;
			transform: translateX(0%);
		}

		100% {
			opacity: 0;
			transform: translateX(100%);
		}
	}

	.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item img {
		margin-top: 0;
	}

	.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item.text-center .title {
		margin-bottom: 20px;
	}

	.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item.text-center:last-child .title {
		margin-bottom: 0;
	}

	.header .menu>ul>li .sub-menu.mega-menu-column-4>.list-item {
		padding: 0;
		width: 45%;
		display: inline-block;
	}

	.header .menu>ul>li .sub-menu>ul>li>a,
	.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul>li>a {
		display: block;
	}

	.header .menu>ul>li .sub-menu.mega-menu>.list-item>ul {
		margin-bottom: 15px;
	}

	.menu-overlay {
		position: fixed;
		background-color: rgba(0, 0, 0, 0.5);
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		z-index: 1098;
		visibility: hidden;
		opacity: 0;
		transition: all 0.5s ease;
	}

	.menu-overlay.active {
		visibility: visible;
		opacity: 1;
	}
}

.country-item {
	position: relative;
	overflow: visible;
	/* Asegurar que tenga suficiente altura */
	min-height: 180px;
}

.country-item:hover .country-tours {
	display: block;
	opacity: 1;
	visibility: visible;
}

/* oculto por defecto */
.country-tours {
	display: none;
	position: absolute;
	top: 75%;
	left: 50%;
	transform: translateX(-50%);
	width: 350px;
	background: white;
	padding: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	z-index: 10001;
	border-radius: 5px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	margin-top: 10px;
}

.country-tours:before {
	content: '';
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid white;
}

/* HOVER EXACTO SOBRE EL <a> */
.country-item>a:hover+.country-tours,
.country-tours:hover {
	display: block;
}

/* tours */
.country-tours .tour-link {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	color: #333;
	text-decoration: none;
	border-bottom: 1px solid #eee;
}

.country-tours .tour-link:last-child {
	border-bottom: none;
}

.country-tours .tour-link strong {
	color: #39536d;
	font-weight: 600;
}

@media (max-width: 767px) {
	.country-tours {
		width: 95% !important;
		max-width: 350px !important;
		padding: 15px 10px;
		/* CORRECCIÓN: Cambiar a posición fija y centrar en pantalla */
		position: fixed !important;
		top: 30% !important;
		left: 50% !important;
		transform: translate(-50%, -50%) !important;
		/* Eliminar left: 9em */
	}

	.country-tours .tour-link {
		font-size: 13px;
		padding: 8px 0;
		/* Esto ya está bien - los links están centrados dentro del contenedor */
	}

	.country-tours .tour-link span {
		padding-right: 10px;
	}

	.country-tours .tour-link strong {
		font-size: 12px;
	}

	/* Botón de cerrar para móvil */
	.country-tours .close-tours {
		position: absolute;
		top: 10px;
		right: 10px;
		background: none;
		border: none;
		font-size: 20px;
		color: #666;
		cursor: pointer;
		z-index: 10;
		width: 30px;
		height: 30px;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
	}

	.country-tours .close-tours:hover {
		background: #f0f0f0;
	}
}