/* ── Nole Producto Descripción + Imagen ───────────────────────────────────── */

.nole-desc-imagen {
	width: 100%;
}

.nole-desc-imagen__cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: stretch;
}

/* ── Columnas ────────────────────────────────────────────────────────────── */

.nole-desc-imagen__col {
	display: flex;
	flex-direction: column;
	margin-left: 0;
	margin-right: 0;
}

/* ── Columna descripción ─────────────────────────────────────────────────── */

.nole-desc-imagen__col--desc {
	justify-content: flex-start;
}

.nole-desc-imagen__text-wrap {
	position: relative;
	max-height: 450px; /* igual al max-height de la imagen; JS lo ajusta al valor real */
	overflow: hidden;
	transition: max-height 0.4s ease;
	flex: 1;
}

.nole-desc-imagen__text-wrap--no-overflow .nole-desc-imagen__gradient {
	display: none;
}

/* Gradiente para indicar texto oculto */
.nole-desc-imagen__gradient {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 80px;
	background: linear-gradient( to bottom, transparent, #fff );
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.nole-desc-imagen__text-wrap--open .nole-desc-imagen__gradient {
	opacity: 0;
}

.nole-desc-imagen__text {
	font-size: 1rem;
	line-height: 1.7;
	color: #333;
	padding-bottom: 80px; /* clearance para que el degradado no tape la última línea */
}

.nole-desc-imagen__text-wrap--no-overflow .nole-desc-imagen__text {
	padding-bottom: 0;
}

.nole-desc-imagen__text > *:first-child {
	margin-top: 0;
}

.nole-desc-imagen__text > *:last-child {
	margin-bottom: 0;
}

/* ── Botón Leer más ──────────────────────────────────────────────────────── */

.nole-desc-imagen__toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 12px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	color: #333;
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
	align-self: flex-start;
}

.nole-desc-imagen__toggle:hover {
	color: #000;
}

/* ── Columna imagen ──────────────────────────────────────────────────────── */

.nole-desc-imagen__col--img {
	align-items: stretch;
}

.nole-desc-imagen__img {
	width: 100%;
	height: 100%;
	max-height: 520px;
	object-fit: contain;
	display: block;
	border-radius: 4px;
}

.nole-desc-imagen__img-placeholder {
	width: 100%;
	height: 100%;
	min-height: 240px;
	background: #f0f0f0;
	border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media ( max-width: 768px ) {
	.nole-desc-imagen__cols {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.nole-desc-imagen__col--img {
		order: -1;
	}

	.nole-desc-imagen__img {
		height: 260px;
		object-fit: cover;
	}
}

/* ── Placeholder en el editor ────────────────────────────────────────────── */

.nole-desc-imagen-editor__placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	background: #f0f0f0;
	border: 2px dashed #ccc;
	border-radius: 4px;
	color: #555;
	text-align: center;
}

.nole-desc-imagen-editor__placeholder .dashicons {
	font-size: 40px;
	width: 40px;
	height: 40px;
	margin-bottom: 8px;
}
