.producto-card {
	cursor: pointer;
}


/* =========================================================
   OVERLAY DEL MODAL
   ========================================================= */

.producto-modal-overlay {
	position: fixed !important;
	inset: 0 !important;

	width: 100vw;
	height: 100vh;

	z-index: 2147483647 !important;

	background: rgba(0, 0, 0, 0.6);

	display: flex;
	align-items: center;
	justify-content: center;

	padding: 24px;

	box-sizing: border-box;
}

.producto-modal-overlay[hidden] {
	display: none !important;
}


/* =========================================================
   VENTANA MODAL
   ========================================================= */

.producto-modal {
	position: relative;

	width: 95vw;
	max-width: 1200px;

	height: 88vh;
	max-height: 820px;

	background: #ffffff;
	border-radius: 12px;

	overflow: hidden;

	z-index: 1;

	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   BOTÓN CERRAR
   ========================================================= */

.producto-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;

	z-index: 10;

	width: 42px;
	height: 42px;

	border-radius: 50%;
	border: none;

	background: rgba(255, 255, 255, 0.92);
	color: #1f2937;

	font-size: 26px;
	line-height: 1;

	cursor: pointer;

	display: flex;
	align-items: center;
	justify-content: center;

	transition: background 0.15s ease;
}

.producto-modal-close:hover {
	background: #ffffff;
}


/* =========================================================
   CONTENIDO DEL MODAL
   ========================================================= */

.producto-modal-content {
	position: relative;
	height: 100%;
	z-index: 1;
}

.producto-modal-grid {
	position: relative;

	display: grid;
	grid-template-columns: 1fr 1fr;

	width: 100%;
	height: 100%;

	z-index: 1;
}


/* =========================================================
   IMAGEN DEL PRODUCTO
   ========================================================= */

.producto-modal-imagen {
	position: relative;

	width: 100%;
	height: 100%;

	overflow: hidden;

	background: #e5e7eb;

	z-index: 1;
}

.producto-modal-imagen img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	position: relative;
	z-index: 1;
}


/* =========================================================
   INFORMACIÓN DEL PRODUCTO
   ========================================================= */

.producto-modal-info {
	position: relative;

	padding: 48px 44px;

	overflow-y: auto;

	background: #ffffff;

	z-index: 2;

	box-sizing: border-box;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.producto-modal-titulo {
	margin: 0 0 18px;

	font-size: 30px;
	line-height: 1.15;
	font-weight: 700;

	color: #1f2937;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.producto-modal-descripcion {
	margin-bottom: 26px;

	font-size: 16px;
	line-height: 1.6;

	color: #374151;
}

.producto-modal-descripcion p {
	margin: 0 0 14px;
}


/* =========================================================
   CARACTERÍSTICAS
   ========================================================= */

.producto-modal-caracteristicas {
	list-style: none;

	margin: 0;
	padding: 0;
}

.producto-modal-caracteristicas li {
	display: flex;
	align-items: center;

	gap: 12px;

	margin-bottom: 14px;

	font-size: 16px;
	line-height: 1.4;

	color: #374151;
}

.producto-modal-caracteristicas li svg {
	width: 22px;
	height: 22px;

	color: #2563eb;

	flex-shrink: 0;
}


/* =========================================================
   BLOQUEAR SCROLL CUANDO EL MODAL ESTÁ ABIERTO
   Requiere añadir la clase producto-modal-abierto al body
   mediante JavaScript.
   ========================================================= */

body.producto-modal-abierto {
	overflow: hidden !important;
}


/* =========================================================
   PROTECCIÓN EXTRA FRENTE A ELEMENTOS DE DIVI
   ========================================================= */

body .producto-modal-overlay {
	z-index: 2147483647 !important;
}

body .producto-modal-overlay .producto-modal {
	z-index: 1 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 782px) {

	.producto-modal-overlay {
		padding: 12px;
	}

	.producto-modal {
		width: 100%;
		height: 92vh;
		max-height: none;
	}

	.producto-modal-grid {
		grid-template-columns: 1fr;
		grid-template-rows: 220px minmax(0, 1fr);
	}

	.producto-modal-imagen {
		height: 220px;
	}

	.producto-modal-info {
		padding: 28px 22px;
	}

	.producto-modal-titulo {
		font-size: 24px;
	}

	.producto-modal-close {
		top: 12px;
		right: 12px;

		width: 40px;
		height: 40px;
	}
}