/* ── Wrapper ──────────────────────────────────────────────── */
.mwfc-wrapper {
	perspective: 1200px;
	width: 100%;
}

/* ── Card ─────────────────────────────────────────────────── */
.mwfc-card {
	position: relative;
	width: 100%;
	height: 380px;
	transform-style: preserve-3d;
	transition: transform 0.6s ease;
}

/* ── Caras ────────────────────────────────────────────────── */
.mwfc-front,
.mwfc-back {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	background-color: #f5f5f5;
	transition: opacity 0.4s ease;
}

.mwfc-front-inner,
.mwfc-back-inner {
	padding: 30px;
	display: flex;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
	position: relative;
	z-index: 1;
}

/* ── Línea superior ───────────────────────────────────────── */
.mwfc-line {
	width: 40px;
	height: 1px;
	background-color: #000;
	margin-bottom: 20px;
	flex-shrink: 0;
}

/* ── Ubicación ────────────────────────────────────────────── */
.mwfc-ubicacion {
	margin: 0 0 16px;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* ── Descripción ──────────────────────────────────────────── */
.mwfc-desc {
	flex: 1;
	margin-bottom: 16px;
}

.mwfc-desc p {
	margin: 0 0 8px;
}

.mwfc-desc p:last-child {
	margin-bottom: 0;
}

/* ── Teléfonos y Web ──────────────────────────────────────── */
.mwfc-telefono,
.mwfc-web {
	display: block;
	color: inherit;
	text-decoration: none;
}

/* ── Botón ────────────────────────────────────────────────── */
.mwfc-btn {
	display: inline-block;
	padding: 10px 24px;
	border: 1px solid currentColor;
	background-color: transparent;
	text-decoration: none;
	cursor: pointer;
	align-self: flex-start;
	transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* ── Overlay sobre imagen de fondo ───────────────────────── */
.mwfc-front,
.mwfc-back {
	background-size: cover;
	background-position: center;
}

.mwfc-front::after,
.mwfc-back::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-color: transparent;
	opacity: 0;
	z-index: 0;
}

/* ── Efecto: Flip horizontal ──────────────────────────────── */
.mwfc-effect-flip-h .mwfc-back {
	transform: rotateY(180deg);
}

.mwfc-effect-flip-h:hover {
	transform: rotateY(180deg);
}

/* ── Efecto: Flip vertical ────────────────────────────────── */
.mwfc-effect-flip-v .mwfc-back {
	transform: rotateX(180deg);
}

.mwfc-effect-flip-v:hover {
	transform: rotateX(180deg);
}

/* ── Efecto: Fade ─────────────────────────────────────────── */
.mwfc-effect-fade .mwfc-front {
	opacity: 1;
	z-index: 1;
}

.mwfc-effect-fade .mwfc-back {
	opacity: 0;
	z-index: 0;
}

.mwfc-effect-fade:hover .mwfc-front {
	opacity: 0;
	z-index: 0;
}

.mwfc-effect-fade:hover .mwfc-back {
	opacity: 1;
	z-index: 1;
}
