/* ==========================================================================
   Menu V3 - Unificado (base v2 + mejoras v3)
   Sidebar oscuro + foto de fondo + glass cards + EUNEIZ logo
   ========================================================================== */

/* ---- Aplica en TODOS los viewports: show/hide wrappers ---- */
.menu-v3 .v3-desktop-only { display: contents; }
.menu-v3 .v3-mobile-only { display: none; }
@media (max-width: 1105px) {
	.menu-v3 .v3-desktop-only { display: none !important; }
	.menu-v3 .v3-mobile-only { display: block; }
}

/* ---- Solo DESKTOP (>1105px): todos los estilos visuales ---- */
@media (min-width: 1106px) {

/* ===== BASE V2: Menu bar superior ===== */
body.menu-v2 header {
	background: #fff;
}
body.menu-v2 .cont_logo_top {
	padding: 20px 0 10px;
}
body.menu-v2 .menu_content {
	margin: 0;
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
}
body.menu-v2 .cont_menu_in {
	justify-content: center;
	flex-wrap: nowrap;
}
body.menu-v2 .menu_content .dropdown_menu button,
body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi {
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #005348;
	padding: 22px 12px 22px 12px;
	white-space: nowrap;
	transition: color 0.2s;
	position: relative;
}
body.menu-v2 .menu_content .dropdown_menu button:hover,
body.menu-v2 .menu_content .dropdown_menu:hover button {
	color: #FF8200;
}
body.menu-v2 .menu_content .dropdown_menu button span,
body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi span {
	display: inline-block !important;
	background: url("../img/down.png") no-repeat center center !important;
	background-size: contain !important;
	width: 22px !important;
	height: 15px !important;
	margin-left: 6px;
	vertical-align: middle;
	position: static !important;
	transform: none !important;
}
body.menu-v2 .menu_content .dropdown_menu button span.badge_pack {
	display: inline-block !important;
	background: linear-gradient(229deg, #DC3446 0%, #b90a1d 100%) !important;
	width: auto !important;
	height: auto !important;
	position: absolute !important;
	top: 5px !important;
	right: 0 !important;
	left: auto !important;
	margin-left: 0;
	font-size: 9px;
	font-weight: 700;
	color: #fff;
	padding: 3px 6px;
	border-radius: 50px;
	border-bottom-right-radius: 0;
	background-size: unset !important;
}
body.menu-v2 .dropdown-menu-serca {
	top: auto;
	border-top: 3px solid #FF8200;
	padding: 0 !important;
}
body.menu-v2 .dropdown-menu-serca > .container-xl {
	max-width: 100%;
	padding: 0;
}
body.menu-v2 .v2-sidebar .nav-menu-serca {
	padding-left: 75px;
}
body.menu-v2 .v2-overlay {
	padding-left: 50px;
	padding-right: 100px;
}

/* Unimarconi button v2 - simplificado */
body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi {
	display: inline-block;
	padding: 22px 18px;
	margin-top: 0;
	text-align: center;
}
body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi img {
	display: none !important;
}
body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi div {
	display: none !important;
}
body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi span {
	display: none !important;
}
body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi::after {
	content: '';
	display: inline-block;
	background: url("../img/down.png") no-repeat center center;
	background-size: contain;
	width: 22px;
	height: 15px;
	margin-left: 6px;
	vertical-align: middle;
}

/* Badge CREA TU PACK v2 */
body.menu-v2 .menu_content .dropdown_menu button span.badge_pack {
	display: inline-block !important;
	position: static;
	margin-left: 6px;
	vertical-align: middle;
}

/* ===== BASE V2: Panel inmersivo ===== */
.v2-content-area {
	background-size: cover;
	background-position: center;
	position: relative;
	display: flex;
	height: 380px;
}
.v2-content-area::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,83,72,0.87), rgba(0,40,35,0.93));
}
.v2-overlay {
	position: relative;
	z-index: 1;
	flex: 1;
	padding: 20px 35px;
	display: flex;
	flex-direction: column;
	color: #fff;
	overflow: hidden;
}
.v2-badge {
	display: inline-block;
	background: #FF8200;
	color: #fff;
	padding: 3px 12px;
	border-radius: 50px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
	width: fit-content;
}
.v2-title {
	font-family: 'Montserrat', sans-serif;
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 12px;
}
.v2-course-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.v2-course-card {
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.15);
	border-radius: 10px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	transition: all 0.2s;
	cursor: pointer;
	text-decoration: none;
	display: block;
}
.v2-course-card:hover {
	background: rgba(255,130,0,0.25);
	border-color: rgba(255,130,0,0.4);
	transform: translateY(-2px);
	text-decoration: none;
	color: #fff;
}
.v2-footer {
	padding-top: 10px;
	text-align: right;
	flex-shrink: 0;
}
.v2-footer a {
	color: #FF8200;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
}

/* ===== BASE V2: Oficiales ===== */
.v2-header-oficiales {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0;
}
.v2-header-oficiales .v2-title {
	margin-bottom: 0;
}
.v2-logo-unimarconi {
	width: 248px;
	height: auto;
	opacity: 0.9;
}
body.menu-v2 .v2-overlay-oficiales {
	padding-left: 150px;
	padding-right: 100px;
}
.v2-grid-oficiales {
	margin-top: 20px;
}
.v2-content-oficiales::before {
	background: linear-gradient(135deg, rgba(0,83,72,0.55), rgba(0,40,35,0.65)) !important;
}

/* ===== BASE V2: Sidebar oscuro ===== */
.v2-sidebar .nav-menu-serca {
	background: #005348;
}
.v2-sidebar .nav-menu-serca a.nav-link {
	background: #005348;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
	letter-spacing: 1px;
	font-size: 13px;
	border-left: 4px solid transparent;
	padding: 22px 24px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
	transition: all 0.3s;
}
.v2-sidebar .nav-menu-serca a.nav-link:hover {
	color: #fff;
	background: rgba(255,255,255,0.05);
}
.v2-sidebar .nav-menu-serca a.nav-link.active {
	color: #FF8200;
	background: rgba(255,130,0,0.1);
	border-left-color: #FF8200;
}

/* ===== BASE V2: Reset spacing ===== */
.v2-sidebar,
.v2-sidebar + div {
	padding: 0 !important;
}
.v2-sidebar .nav-menu-serca {
	margin-left: 0 !important;
}
.v2-sidebar + div .tab-content {
	padding-left: 0 !important;
	padding-top: 0 !important;
}
.v2-sidebar + div .tab-pane {
	padding: 0 !important;
}
.v2-sidebar + div .tab-pane.active {
	background: none !important;
}
.v2-sidebar + div .tab-pane.fade {
	transition: none !important;
	opacity: 1 !important;
}
.v2-sidebar + div .tab-content {
	color: #fff !important;
}

/* ===== V3: Fix container dentro de wrapper ===== */
body.menu-v3 .dropdown-menu-serca > .v3-desktop-only > .container-xl {
	max-width: 100%;
	padding: 0;
}

/* ===== V3: Course grid ===== */
body.menu-v3 .v2-course-grid {
	margin-top: 3px;
}

/* ===== V3: Línea horizontal con terminación diagonal ===== */
body.menu-v3 .v2-title {
	margin-bottom: 16px;
	max-width: calc(100% - 220px);
}
.v3-title-line {
	display: block;
	height: 3px;
	background: #FF8200;
	margin-top: 8px;
	clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

/* ===== V3: VER MÁS fijo abajo-derecha ===== */
body.menu-v3 .v2-footer {
	position: absolute;
	bottom: 17px;
	right: 100px;
}

/* ===== V3: Oficiales ===== */
body.menu-v3 .v2-header-oficiales .v2-title {
	max-width: none;
	white-space: nowrap;
}
body.menu-v3 .v2-logo-unimarconi {
	width: 198px;
	margin-top: -7px;
}
body.menu-v3 .v2-grid-oficiales {
	margin-top: 21px;
}

/* ===== V3: Ocultar badges naranjas ===== */
body.menu-v3 .v2-badge {
	display: none !important;
}

/* ===== V3: Barra "Ver todos los..." ===== */
body.menu-v3 .ver_todos_master_menu.ver_todos_master_big {
	margin: 0;
}
body.menu-v3 .ver_todos_master_menu.ver_todos_master_big a {
	background: transparent;
	border-top: 2px solid rgba(0,83,72,0.12);
	padding: 18px 0;
	font-size: 18px;
	font-weight: 700;
	color: #005348;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.2s;
}
body.menu-v3 .ver_todos_master_menu.ver_todos_master_big a:hover {
	background: transparent;
	color: #FF8200;
	border-top-color: #FF8200;
}
body.menu-v3 .ver_todos_master_menu.ver_todos_master_big a i {
	color: #FF8200;
	font-size: 15px;
}

/* ===== V3: Cursos ===== */
body.menu-v3 [id^="v2-cursos-"] .v2-title {
	max-width: none;
}
body.menu-v3 .cont_menu_verpack {
	border-top: 2px solid rgba(0,83,72,0.12);
	padding: 14px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 58px;
}

/* ===== V3: Logo EUNEIZ en overlay ===== */
.v3-logo-euneiz {
	position: absolute;
	top: 20px;
	right: 100px;
	width: 200px;
	height: auto;
	opacity: 0.9;
	z-index: 2;
	filter: brightness(0) invert(1);
}

} /* fin @media (min-width: 1106px) */

/* ---- PORTÁTIL (1106px - 1400px): ajustes de espacio ---- */
@media (min-width: 1106px) and (max-width: 1400px) {
	body.menu-v2 .v2-sidebar .nav-menu-serca {
		padding-left: 15px;
	}
	body.menu-v2 .v2-overlay {
		padding-left: 25px;
		padding-right: 30px;
	}
	body.menu-v2 .v2-overlay-oficiales {
		padding-left: 40px;
		padding-right: 30px;
	}
	body.menu-v2 .menu_content .dropdown_menu button,
	body.menu-v2 .menu_content .dropdown_menu button.menu_unimarconi {
		font-size: 13px;
		padding: 22px 8px;
	}
	.v2-sidebar .nav-menu-serca a.nav-link {
		padding: 18px 16px;
		font-size: 12px;
	}
	.v2-title {
		font-size: 20px;
	}
	.v2-course-card {
		font-size: 13px;
		padding: 8px 12px;
	}
	.v3-logo-euneiz {
		width: 160px;
		right: 30px;
	}
	body.menu-v3 .v2-title {
		max-width: calc(100% - 180px);
	}
	body.menu-v3 .v2-footer {
		right: 30px;
	}
	body.menu-v3 .v2-logo-unimarconi {
		width: 160px;
	}
}
