/* ============================================================
   Tarjeta para Elementor — Estilos del widget
   ============================================================ */

/* ---- Contenedor principal ---- */
.tarjeta-elementor {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 16px;
	overflow: hidden;
	background-color: #fce8ef;
}

/* ---- Wrapper de imagen (contiene el zoom) ---- */
.tarjeta-elementor__image-wrapper {
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	height: 280px;
}

/* ---- Imagen ---- */
.tarjeta-elementor__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

/* Zoom activo (clase añadida por PHP/JS según el toggle) */
.tarjeta-elementor--zoom:hover .tarjeta-elementor__image {
	transform: scale(1.06);
}

/* ---- Cintillo (badge) ---- */
.tarjeta-elementor__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border-radius: 20px;
	padding: 6px 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a1a1a;
	line-height: 1.2;
	white-space: nowrap;
	/* Evita solaparse con el icono de esquina */
	max-width: calc(100% - 76px);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- Icono circular de esquina ---- */
.tarjeta-elementor__icon-btn {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	color: #e91e63;
	font-size: 16px;
	line-height: 1;
	flex-shrink: 0;
}

/* Sin fondo */
.tarjeta-elementor__icon-btn--no-bg {
	background-color: transparent !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.tarjeta-elementor__icon-btn i {
	display: block;
	line-height: 1;
}

.tarjeta-elementor__icon-btn svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ---- Área de contenido ---- */
.tarjeta-elementor__content {
	padding: 24px 24px 28px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

/* ---- Título ---- */
.tarjeta-elementor__title {
	margin: 0 0 12px;
	padding: 0;
	color: #1a1a1a;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
}

/* ---- Descripción ---- */
.tarjeta-elementor__description {
	margin: 0 0 20px;
	padding: 0;
	color: #444;
	font-size: 15px;
	line-height: 1.65;
	flex: 1;
}

/* ---- Enlace ---- */
.tarjeta-elementor__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	color: #e91e63;
	margin-top: auto;
	align-self: flex-start;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.tarjeta-elementor__link:hover {
	opacity: 0.78;
	text-decoration: none;
}

.tarjeta-elementor__link-text {
	line-height: 1;
}

.tarjeta-elementor__link-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
}

.tarjeta-elementor__link-icon i {
	font-size: 14px;
	line-height: 1;
	display: block;
}

.tarjeta-elementor__link-icon svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

/* Variantes de posición del icono en el enlace */
.tarjeta-elementor__link--icon-right .tarjeta-elementor__link-icon {
	order: 2;
}
.tarjeta-elementor__link--icon-right .tarjeta-elementor__link-text {
	order: 1;
}
.tarjeta-elementor__link--icon-left .tarjeta-elementor__link-icon {
	order: 0;
}
.tarjeta-elementor__link--icon-left .tarjeta-elementor__link-text {
	order: 1;
}
