.cm-grid {
	--cm-columnas: 3;
	display: grid;
	grid-template-columns: repeat(var(--cm-columnas), minmax(0, 1fr));
	gap: 24px;
	margin: 24px 0;
}

@media (max-width: 900px) {
	.cm-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.cm-grid {
		grid-template-columns: 1fr;
	}
}

.cm-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #b0b3b8;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cm-card-clickable {
	cursor: pointer;
}

.cm-card-clickable:hover,
.cm-card-clickable:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
	outline: none;
}

.cm-card-photo {
	width: 150px;
	max-width: 100%;
	aspect-ratio: 4 / 3;
	margin: 20px auto 0;
	border-radius: 8px;
	background: #f1f1f1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cm-card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cm-card-placeholder {
	font-size: 2.5rem;
	font-weight: 600;
	color: #8a8f98;
}

.cm-card-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cm-card-name {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1d2327;
}

.cm-card-role {
	margin: 0;
	font-size: 0.9rem;
	color: #50575e;
}

.cm-card-email {
	font-size: 0.85rem;
	color: #2271b1;
	text-decoration: none;
	word-break: break-word;
}

.cm-card-email:hover {
	text-decoration: underline;
}

.cm-card-more {
	margin-top: 8px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #2271b1;
}

.cm-empty {
	font-style: italic;
	color: #50575e;
}

/* Modal de biografía */

.cm-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}

.cm-modal-open {
	display: flex;
}

.cm-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.6);
}

.cm-modal-dialog {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 640px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cm-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 1.8rem;
	line-height: 1;
	cursor: pointer;
	color: #50575e;
	z-index: 1;
}

.cm-modal-photo {
	padding-top: 28px;
	text-align: center;
}

.cm-modal-photo img {
	width: 150px;
	max-width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: inline-block;
	border-radius: 8px;
}

.cm-modal-content {
	padding: 24px 28px 30px;
}

.cm-modal-title {
	margin: 0 0 4px;
	font-size: 1.4rem;
}

.cm-modal-role {
	margin: 0 0 16px;
	color: #50575e;
	font-weight: 600;
}

.cm-modal-bio p {
	margin: 0 0 1em;
	line-height: 1.6;
	color: #1d2327;
}

.cm-modal-email {
	display: inline-block;
	margin-top: 12px;
	color: #2271b1;
	text-decoration: none;
}

.cm-modal-email:hover {
	text-decoration: underline;
}

body.cm-modal-lock {
	overflow: hidden;
}
