.meg-services-wrapper {
	width: 100%;
}

.meg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	width: 100%;
}

.meg-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 6px;
	box-sizing: border-box;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.meg-card-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 0 25px 30px;
}

.meg-card-image-wrap {
	position: relative;
	width: 100%;
	height: 160px;
	border-radius: 8px;
	overflow: visible;
	flex-shrink: 0;
	margin-bottom: 26px;
}

.meg-card-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
	display: block;
}

.meg-card-icon {
	position: absolute;
	left: 20px;
	bottom: -28px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.meg-card-icon i,
.meg-card-icon svg {
	color: #b8912b;
	font-size: 26px;
	width: 26px;
	height: 26px;
}

.meg-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a2a4a;
	margin: 0 0 10px;
	line-height: 1.3;
}

.meg-card-description {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.6;
	margin: 0;
}

.meg-toggle-wrap {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.meg-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: #c99a2e;
	color: #ffffff;
	border: none;
	cursor: pointer;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	transition: background-color 0.25s ease;
}

.meg-toggle-btn:hover {
	background-color: #a97f1f;
}

.meg-toggle-icon {
	display: inline-block;
	transition: transform 0.25s ease;
	font-weight: 400;
}

.meg-toggle-btn.is-open .meg-toggle-icon {
	transform: rotate(45deg);
}

.meg-card-link-wrap {
	display: flex;
	justify-content: flex-start;
	margin-top: auto; /* alinea los botones abajo aunque las descripciones midan distinto */
	padding-top: 18px;
}

.meg-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #b8912b;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: none;
	border-bottom: 2px solid currentColor;
	padding-bottom: 4px;
	cursor: pointer;
	transition: color 0.25s ease, border-color 0.25s ease;
}

.meg-card-link:hover,
.meg-card-link:focus {
	color: #8a6a14;
	text-decoration: none;
}

.meg-card-link-icon {
	display: inline-flex;
	align-items: center;
	transition: transform 0.25s ease;
}

.meg-card-link-icon i {
	font-size: 14px;
	line-height: 1;
	color: inherit;
}

.meg-card-link-icon svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* Tablet: 2 columnas por defecto (ajustable desde el editor) */
@media (max-width: 1024px) {
	.meg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Celular: 1 columna por defecto (ajustable desde el editor) */
@media (max-width: 767px) {
	.meg-grid {
		grid-template-columns: repeat(1, 1fr);
	}

	.meg-toggle-wrap {
		margin-top: 24px;
	}

	.meg-toggle-btn {
		width: 100%;
		justify-content: center;
	}
}
