/* DD Tarjetas Destacadas – estilos
   Variables configurables desde Elementor:
   --ddf-cols, --ddf-gap
*/

.ddf-cards {
	display: grid;
	grid-template-columns: repeat(var(--ddf-cols, 3), minmax(0, 1fr));
	gap: var(--ddf-gap, 40px);
	align-items: stretch;
	font-family: "Inter Tight", "Inter", sans-serif;
}

/* ---- Tarjeta ---- */

.ddf-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

.ddf-media {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	background: #e9eef5;
	border-bottom: 6px solid #17539f;
	border-bottom-style: solid;
}

.ddf-media .ddf-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.ddf-zoom-yes .ddf-card:hover .ddf-img {
	transform: scale(1.05);
}

.ddf-body {
	background: #e7f0fa;
	padding: 18px 20px;
}

/* Cuerpos estirados para igualar alturas por fila */
.ddf-equal-yes .ddf-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

.ddf-equal-yes .ddf-row {
	margin-top: auto;
}

.ddf-title {
	margin: 0 0 0.35em;
	color: #17539f;
	font-family: "Inter Tight", "Inter", sans-serif;
	font-weight: 900;
	font-size: clamp(1.5rem, 2.9vw, 2.6rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
}

.ddf-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 14px;
	padding-top: 6px;
}

.ddf-desc {
	margin: 0;
	color: #17539f;
	font-size: 0.95em;
	line-height: 1.4;
	min-width: 0;
}

.ddf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #17539f;
	color: #fff;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.25s ease;
}

.ddf-btn svg {
	width: 18px;
	height: 18px;
}

.ddf-btn:hover {
	transform: translateX(3px);
	color: #fff;
}

.ddf-btn:focus-visible {
	outline: 2px solid #0e3d79;
	outline-offset: 2px;
}

/* ---- Utilidades ---- */

.ddf-empty {
	padding: 24px;
	border: 1px dashed #b0b8c4;
	border-radius: 6px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

/* ---- Movimiento reducido ---- */

@media (prefers-reduced-motion: reduce) {
	.ddf-img,
	.ddf-btn {
		transition: none !important;
	}
}
