/* Disparador (icono hamburguesa) */
.occm-trigger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	gap: 5px;
	padding: 0;
}
.occm-bar {
	display: block;
	width: 24px;
	height: 2px;
	background: #222;
	border-radius: 2px;
	transition: background .2s ease;
}
.occm-trigger:hover .occm-bar { background: #000; }

/* Overlay */
.occm-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease;
	z-index: 99998;
}
.occm-overlay.is-open { opacity: 1; visibility: visible; }

/* Drawer */
.occm-drawer {
	position: fixed;
	top: 0;
	left: 0;
	height: 100%;
	z-index: 99999;
	visibility: hidden;
	pointer-events: none;
}
.occm-drawer.is-open { visibility: visible; pointer-events: auto; }

.occm-panels { display: flex; height: 100%; }

/* Panel izquierdo */
.occm-left-panel {
	width: 320px;
	max-width: 85vw;
	height: 100%;
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform .3s ease;
	overflow-y: auto;
}
.occm-drawer.is-open .occm-left-panel { transform: translateX(0); }

.occm-header {
	background: #1e5fd9;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	font-weight: 600;
	font-size: 16px;
	flex-shrink: 0;
}
.occm-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.occm-left-list { list-style: none; margin: 0; padding: 8px 0 0; }
.occm-item { border-bottom: 1px solid #f0f0f0; }
.occm-item a,
.occm-item-label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 20px;
	color: #222;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
}
.occm-item.is-active > .occm-item-label { background: #f2f2f2; }
.occm-chevron { opacity: .5; flex-shrink: 0; }

.occm-utility-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 12px 0 24px;
	border-top: 1px solid #eee;
}
.occm-utility-item a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 20px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
}
.occm-icon-img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

/* Panel derecho (mega menú) */
.occm-right-wrap { position: relative; height: 100%; }

.occm-back {
	display: none;
	align-items: center;
	gap: 6px;
	background: #fff;
	border: none;
	padding: 14px 20px;
	font-size: 14px;
	cursor: pointer;
	width: 100%;
	text-align: left;
}

.occm-panel-right {
	position: absolute;
	top: 16px;
	left: 16px;
	width: 640px;
	max-width: calc(100vw - 380px);
	background: #fff;
	border: 2px solid #1e5fd9;
	border-radius: 12px;
	padding: 20px 24px;
	box-shadow: 0 10px 30px rgba(0,0,0,.15);
	opacity: 0;
	visibility: hidden;
	transform: translateX(-10px);
	transition: opacity .2s ease, transform .2s ease;
	max-height: calc(100% - 32px);
	overflow-y: auto;
}
.occm-panel-right.is-visible { opacity: 1; visibility: visible; transform: translateX(0); }

.occm-panel-right-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	font-size: 15px;
	color: #1e5fd9;
	margin-bottom: 14px;
}
.occm-viewall,
.occm-column-viewall {
	color: #1e5fd9;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	display: block;
}

.occm-columns {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 20px;
}
.occm-column { display: flex; flex-direction: column; gap: 6px; }
.occm-column-title { font-size: 14px; color: #222; margin-bottom: 2px; }
.occm-column-link { font-size: 13px; color: #555; text-decoration: none; }
.occm-column-link:hover { color: #1e5fd9; }

body.occm-lock { overflow: hidden; }

/* Responsive: el panel derecho pasa a ocupar toda la pantalla y se desliza sobre el izquierdo */
@media (max-width: 992px) {
	.occm-left-panel { width: 100%; max-width: 100%; }

	.occm-panel-right {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		max-width: 100%;
		height: 100%;
		max-height: 100%;
		border-radius: 0;
		border: none;
		box-shadow: none;
		transform: translateX(100%);
		padding: 16px 20px 40px;
	}
	.occm-panel-right.is-visible { transform: translateX(0); }
	.occm-back { display: flex; }
}
