/* =============================================================================
   ECA · Sidebar izquierda colapsable con hover (desktop only ≥992px)
   - Estado base: 72px (solo íconos)
   - Hover: 250px con labels (overlay, no empuja contenido)
   - Tablet / móvil: comportamiento por defecto del theme
   ============================================================================= */

@media (min-width: 992px) {
	/* contenedor principal: deja solo 72px al sidebar */
	.main-wrapper {
		padding-left: 72px !important;
		transition: padding-left .22s ease;
	}

	/* sidebar colapsada por defecto */
	.ele_sidebar_left {
		width: 72px !important;
		z-index: 1030;
		transition: width .22s cubic-bezier(.4, 0, .2, 1), box-shadow .22s ease;
		overflow: visible;
	}

	/* contenedor interno: sin scrollbars visibles (vertical ni horizontal) */
	.ele_sidebar_left .sidebar_innr {
		overflow-x: hidden !important;
		overflow-y: auto;
		scrollbar-width: none;          /* Firefox */
		-ms-overflow-style: none;       /* IE/Edge legacy */
	}
	.ele_sidebar_left .sidebar_innr::-webkit-scrollbar {
		width: 0 !important;
		height: 0 !important;
		display: none;
	}

	/* hover: expande encima del contenido */
	.ele_sidebar_left:hover,
	.ele_sidebar_left:focus-within {
		width: 250px !important;
		box-shadow: 0 6px 24px rgba(35, 75, 54, .12);
	}

	/* botones colapsados: ícono CENTRADO en los 72px */
	.ele_sidebar_left .btn.btn-mat {
		padding: 0 !important;
		justify-content: center;
		align-items: center;
		overflow: hidden;
		white-space: nowrap;
		width: 100%;
		transition: padding .22s ease, justify-content .22s ease;
	}

	/* botones expandidos: ícono + label alineados a la izquierda con padding */
	.ele_sidebar_left:hover .btn.btn-mat,
	.ele_sidebar_left:focus-within .btn.btn-mat {
		padding: 0 24px !important;
		justify-content: flex-start;
	}

	.ele_sidebar_left .btn.btn-mat > span {
		opacity: 0;
		transform: translateX(-6px);
		transition: opacity .18s ease, transform .22s ease;
		display: inline-block;
		max-width: 0;
		overflow: hidden;
	}

	.ele_sidebar_left:hover .btn.btn-mat > span,
	.ele_sidebar_left:focus-within .btn.btn-mat > span {
		opacity: 1;
		transform: translateX(0);
		max-width: 200px;
		margin-left: 14px;
	}

	/* hr separadores: ajuste visual */
	.ele_sidebar_left hr {
		margin: 8px 16px;
		transition: margin .22s ease;
	}

	/* widget premium / contenido extra: oculto cuando colapsado */
	.ele_sidebar_left .ele_prem,
	.ele_sidebar_left .sidebar_innr > *:not(.btn):not(hr) {
		opacity: 0;
		pointer-events: none;
		transition: opacity .18s ease;
	}
	.ele_sidebar_left:hover .ele_prem,
	.ele_sidebar_left:focus-within .ele_prem,
	.ele_sidebar_left:hover .sidebar_innr > *:not(.btn):not(hr),
	.ele_sidebar_left:focus-within .sidebar_innr > *:not(.btn):not(hr) {
		opacity: 1;
		pointer-events: auto;
	}

	/* ===========================================================
	   /settings/* : el panel lateral de Configuración se solapa
	   con la sidebar principal (ambos position:fixed; left:0).
	   Solución: cuando exista .ele_sett_side en la página,
	   ocultamos la sidebar principal y removemos su padding.
	   =========================================================== */
	body:has(.ele_sett_side) .ele_sidebar_left { display: none !important; }
	body:has(.ele_sett_side) .main-wrapper     { padding-left: 0 !important; }
}

/* tablet / móvil: no aplicar — respetar comportamiento nativo del theme */
@media (max-width: 991.98px) {
	/* explícitamente sin overrides */
}

/* =============================================================================
   VERIFIED BADGES · diferenciación user (azul) / page (dorado)
   ============================================================================= */
.verified-color.verified-user { color: #1d9bf0 !important; }   /* azul tipo X */
.verified-color.verified-page { color: #d4a62a !important; }   /* dorado ECA  */
body.night-mode .verified-color.verified-user { color: #4fb6f5 !important; }
body.night-mode .verified-color.verified-page { color: #e3b94a !important; }

/* =============================================================================
   AUTHOR ABOUT · headline tipo LinkedIn debajo del nombre
   ============================================================================= */
.post-author-about {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.35;
	color: #5b6b62;
	margin: 2px 0 4px;
	font-weight: 400;
	max-width: 100%;
}
body.night-mode .post-author-about { color: #9aa9a1; }

/* about en bylines de blog (más amplio) */
.eca-blog-author-about,
.eca-aside-author-about {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.35;
	color: #6a7a72;
	margin-top: 2px;
}
body.night-mode .eca-blog-author-about,
body.night-mode .eca-aside-author-about { color: #93a299; }

/* about en detalle de artículo (más amplio, headline tipo LinkedIn) */
.eca-article-author-about {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.4;
	color: #4f5d56;
	margin: 3px 0 6px;
	font-weight: 400;
	max-width: 560px;
}
body.night-mode .eca-article-author-about { color: #a5b4ab; }

/* about en reviews */
.review-author-about {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12.5px;
	line-height: 1.35;
	color: #5b6b62;
	margin: 2px 0 4px;
}
body.night-mode .review-author-about { color: #9aa9a1; }

/* =============================================================================
   PRO USERS WIDGET · rediseño completo al estilo ECA
   ============================================================================= */
.eca-pro-widget { overflow: hidden; }
.eca-pro-ver-beneficios {
	display: inline-flex; align-items: center; gap: 4px;
	font-size: 12px; font-weight: 600; color: var(--main-btn) !important;
	text-decoration: none; border: 1.5px solid #e0e6dc; border-radius: 20px; padding: 4px 10px;
}
.eca-pro-ver-beneficios:hover { background: #f4f7f2; text-decoration: none; color: var(--main-btn) !important; }

/* banner verde */
.eca-pro-banner {
	display: flex; align-items: center; justify-content: space-between;
	margin: 0 12px 12px; padding: 20px; border-radius: 14px;
	background: linear-gradient(135deg, #1a3a2a 0%, #2d5a3d 100%);
	color: #fff; position: relative; overflow: hidden; min-height: 120px;
}
.eca-pro-banner-text { flex: 1; z-index: 1; padding-right: 12px; }
.eca-pro-banner-title { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.eca-pro-banner-title strong { color: var(--main-btn); }
.eca-pro-banner-sub { display: block; font-size: 11.5px; line-height: 1.4; opacity: .8; }
.eca-pro-banner-logo {
	width: 70px; height: 70px; border-radius: 16px; flex-shrink: 0;
	background: linear-gradient(145deg, #234b36, #1a3a2a);
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 24px rgba(0,0,0,.3), 0 0 40px rgba(180,160,60,.15);
	position: relative; z-index: 1;
}
.eca-pro-banner-w {
	font-family: 'Gilroy-Bold', sans-serif; font-size: 32px; color: var(--main-btn);
}

/* beneficios grid */
.eca-pro-benefits {
	display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
	padding: 0 12px 8px;
}
.eca-pro-benefit {
	text-align: center; padding: 12px 6px; border-radius: 10px;
}
.eca-pro-benefit svg { display: block; margin: 0 auto 6px; opacity: .7; }
.eca-pro-benefit-title { display: block; font-size: 11.5px; font-weight: 700; color: #1a2e1a; line-height: 1.3; }
.eca-pro-benefit-desc { display: block; font-size: 10.5px; color: #6a7a6a; line-height: 1.3; margin-top: 2px; }

/* upgrade button */
.eca-pro-widget-foot { padding: 0 12px 14px; }
.eca-pro-upgrade-btn {
	display: flex; align-items: center; justify-content: center;
	width: 100%; padding: 12px 20px; border-radius: 50px;
	background: var(--main-btn); color: #fff !important; font-size: 14px; font-weight: 700;
	text-decoration: none; transition: opacity .15s ease;
}
.eca-pro-upgrade-btn:hover { opacity: .88; color: #fff !important; text-decoration: none; }
.eca-pro-upgrade-btn span { margin-left: 8px; font-size: 18px; }
body.night-mode .eca-pro-benefit-title { color: #d0e0d0; }
body.night-mode .eca-pro-benefit-desc { color: #8a9a8a; }
body.night-mode .eca-pro-banner { background: linear-gradient(135deg, #0f1f15 0%, #1a3025 100%); }

/* =============================================================================
   PACKAGES PAGE · rediseño de cards al estilo ECA
   ============================================================================= */
.ele_pro_page {
	background: #f4f5f0 !important;
	min-height: 100vh;
}
.ele_pro_head {
	text-align: center;
}
.ele_pro_head p {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: var(--main-btn);
	margin-bottom: 6px !important;
}
.ele_pro_head p .badge {
	background: var(--main-btn);
	color: #fff;
	font-size: 10px;
	padding: 3px 8px;
	border-radius: 20px;
	vertical-align: middle;
}
.ele_pro_head h2 {
	font-family: 'Gilroy-Bold', sans-serif;
	font-size: clamp(22px, 3vw, 34px);
	color: #1a2e1a;
}
.ele_pro_plan {
	border-radius: 16px !important;
	border: 2px solid transparent;
	box-shadow: 0 4px 20px rgba(0,0,0,.07) !important;
	padding: 32px !important;
	background: #fff !important;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ele_pro_plan:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 36px rgba(0,0,0,.12) !important;
	border-color: var(--main-btn);
}
.ele_pro_plan_head h3 {
	font-family: 'Gilroy-Bold', sans-serif;
	font-size: 26px;
	color: #1a2e1a;
}
.ele_pro_plan_head p {
	font-size: 14px;
	color: #5b6b62;
	line-height: 1.5;
}
.ele_pro_plan_price h3 {
	font-family: 'Gilroy-Bold', sans-serif;
	font-size: 42px;
	color: #1a2e1a;
}
.ele_pro_plan_price .bold {
	font-size: 14px;
	color: #5b6b62;
}
.ele_pro_plan_info {
	margin-top: 20px;
	font-size: 14px;
	color: #3a4a3a;
}
.ele_pro_plan_info svg { color: var(--main-btn); }
.ele_pro_plan_foot .btn {
	display: block;
	width: 100%;
	padding: 14px 24px !important;
	border-radius: 50px !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .5px;
	background: var(--main-btn) !important;
	border-color: var(--main-btn) !important;
	color: #fff !important;
	text-align: center;
}
.ele_pro_plan_foot .btn:hover { opacity: .88; }
body.night-mode .ele_pro_plan { background: #1e2e1e !important; }
body.night-mode .ele_pro_plan_head h3,
body.night-mode .ele_pro_plan_price h3 { color: #e8f0e8; }
body.night-mode .ele_pro_plan_head p,
body.night-mode .ele_pro_plan_price .bold { color: #9aa99a; }
body.night-mode .ele_pro_plan_info { color: #c0d0c0; }


/* =============================================================================
   PAYMENT MODAL · estilo ECA
   ============================================================================= */
#ele_modal .modal-header {
	border-bottom: 1px solid #eef0eb;
	padding: 18px 24px 14px;
}
#ele_modal .modal-title {
	font-family: 'Gilroy-Bold', sans-serif;
	font-size: 17px;
	color: #1a2e1a;
}
#payment-summry .plr20 {
	padding: 20px 24px !important;
}
#payment-summry .mb15 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #f0f2ee;
	font-size: 14px;
	color: #4a5a4a;
}
#payment-summry .mb15:last-of-type { border-bottom: none; }
#payment-summry .divider { display: none; }
#payment-summry .ptb10 { padding: 16px 0 4px !important; }
#payment-summry .js_payment-pay {
	display: block;
	width: 100%;
	padding: 13px 24px !important;
	border-radius: 50px !important;
	font-weight: 700;
	font-size: 15px;
	background: var(--main-btn) !important;
	border-color: var(--main-btn) !important;
	color: #fff !important;
}
#payment-summry .js_payment-pay:hover { opacity: .88; }
body.night-mode #payment-summry .mb15 { border-color: #2a3a2a; color: #b0c0b0; }

/* welcome article card excerpt */
.eca-welcome-article-card-excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.45;
	color: rgba(255,255,255,.75);
	margin-top: 5px;
}
