/* CSS Document */

/* ===== NAVEGACIÓN PRINCIPAL (Desktop) ===== */
#navbarcont {
	position: fixed;
	width: 100%;
	height: 120px;
	top: 40px;
	background: linear-gradient(135deg, rgba(232, 244, 248, 0.98) 0%, rgba(212, 233, 247, 0.98) 100%);
	backdrop-filter: blur(10px);
	z-index: 9999;
	box-sizing: border-box;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

/* Clase para cuando se hace scroll */
#navbarcont.scrolled {
	height: 70px;
	background: linear-gradient(135deg, rgba(232, 244, 248, 0.95) 0%, rgba(212, 233, 247, 0.95) 100%);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#navbarcont .inwidth {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* ===== LOGO CONTAINER ===== */
#navbarcont #logo {
	position: absolute;
	width: 200px;
	height: 100%;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding: 15px 20px;
	flex-shrink: 0;
	box-sizing: border-box;
	overflow: hidden;
}

/* Logo imagen */
#navbarcont #logo img {
	display: block !important;
	height: auto !important;
	width: auto !important;
	max-height: 80px;
	max-width: 170px !important;
	object-fit: contain !important;
	filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

/* Hover del logo */
#navbarcont #logo:hover img {
	transform: scale(1.05);
	filter: drop-shadow(3px 3px 6px rgba(32, 104, 176, 0.4));
}

/* Contenedor de botones */
#navbuttcont {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	height: 100%;
	flex: 1;
	gap: 2px;
	margin-right: 10px;
}

/* Links del navbar ocupan toda la altura */
#navbuttcont > a {
	display: flex;
	align-items: stretch;
	height: 100%;
}

/* Botones de navegación */
.but {
	cursor: pointer;
	height: 100%;
}

#button {
	height: 100%;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 0 18px !important;
	transition: all 0.3s ease;
	white-space: nowrap;
	font-size: 11pt;
	border: none !important;
	position: relative;
	box-sizing: border-box;
	width: auto !important;
	min-width: 120px;
}

/* Eliminar bordes izquierdo y derecho */
#button.borderl,
#button.borderr {
	border-left: none !important;
	border-right: none !important;
}

/* Eliminar clase w14 */
#button.w14 {
	width: auto !important;
}

/* Asegurar que el contenedor interno ocupe todo */
#button .tableo {
	height: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

#button .tablei {
	display: block;
	width: 100%;
	text-align: center;
	padding: 0 5px;
}

/* Línea divisoria sutil entre botones */
#button::after {
	content: '';
	position: absolute;
	right: 0;
	top: 30%;
	height: 40%;
	width: 1px;
	background-color: rgba(206, 227, 245, 0.5);
}

#button:last-child::after {
	display: none;
}

#button:hover {
	background-color: #2068b0 !important;
	color: white !important;
	transform: translateY(-2px);
}

#button:hover::after {
	opacity: 0;
}

#button:active {
	background-color: #1a5490 !important;
	transform: translateY(0);
}

/* ===== NAVEGACIÓN MÓVIL ===== */
#navmobilecont {
	position: fixed;
	width: 300px;
	height: 100%;
	background: linear-gradient(180deg, #f97175 0%, #e85a5e 100%);
	left: -300px;
	top: 135px;
	z-index: 99999;
	display: none;
	transition: left 0.4s ease;
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
	overflow-y: auto;
}

/* Botones móviles */
.mob-but {
	width: 100%;
	padding: 30px;
	color: white;
	font-size: 19pt;
	box-sizing: border-box;
	transition: all 0.3s ease;
	position: relative;
}

.mob-but:hover {
	background-color: rgba(0, 0, 0, 0.1);
	padding-left: 35px;
}

.mob-but:active {
	background-color: rgba(0, 0, 0, 0.2);
}

/* Logo móvil */
#mobilelogocont {
	width: 100%;
	position: fixed;
	top: 0px;
	left: 0px;
	background-color: white;
	padding-top: 20px;
	padding-bottom: 20px;
	box-sizing: border-box;
	z-index: 100000;
	display: none;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	text-align: center;
}

#mobilelogocont img {
	max-width: 200px;
	height: auto;
}

/* Botón de menú hamburguesa */
#menubut {
	position: absolute;
	width: 50px;
	height: 50px;
	left: 20px;
	top: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 5px;
	color: #2068b0;
}

#menubut:hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: #f97175;
}

#menubut:active {
	transform: scale(0.95);
}

/* ===== MEDIA QUERIES ===== */
@media (orientation: portrait) {
	#navbarcont {
		display: none; 
	}	
	#navmobilecont {
		display: block;
	}
	#mobilelogocont {
		display: block;
	}
}

@media (max-width: 768px) {
	#navbarcont {
		display: none; 
	}	
	#navmobilecont {
		display: block;
	}
	#mobilelogocont {
		display: block;
	}
}