/* PC Inversiones - estilo del listado de posteos (bloque "Últimas entradas") */
:root { --pci-verde: #1f6b3a; --pci-verde-osc: #15502b; --pci-texto: #2b2f2c; --pci-gris: #5d655f; }

/* Filas con flex para que las tandas incompletas queden centradas (2 tarjetas, o 3 + 1).
   El ancho de cada tarjeta equivale a una de las tres columnas del diseño. */
.wp-block-latest-posts.is-grid {
	display: flex !important; flex-wrap: wrap; justify-content: center; align-items: stretch;
	gap: 28px; margin: 32px auto 56px; padding: 0; list-style: none;
}

.wp-block-latest-posts.is-grid > li {
	display: flex; flex-direction: column;
	/* 30% (no 33%) evita que entre una cuarta tarjeta por redondeo */
	flex: 1 1 30%; max-width: calc((100% - 56px) / 3);
	box-sizing: border-box; width: auto !important;
	background: #fff; border-radius: 16px; overflow: hidden;
	box-shadow: 0 2px 14px rgba(20, 40, 28, .10);
	/* margen 0: pisa el margen derecho que trae WordPress (dejaba tarjetas más angostas) */
	margin: 0 !important; transition: transform .25s ease, box-shadow .25s ease;
}
.wp-block-latest-posts.is-grid > li:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(20, 40, 28, .18); }

/* Imagen uniforme, recortada y con zoom suave */
.wp-block-latest-posts__featured-image { margin: 0 !important; overflow: hidden; aspect-ratio: 16 / 10; background: #e9efe9; }
.wp-block-latest-posts__featured-image a { display: block; height: 100%; }
.wp-block-latest-posts__featured-image img { width: 100% !important; height: 100% !important; object-fit: cover; display: block; transition: transform .5s ease; }
.wp-block-latest-posts.is-grid > li:hover .wp-block-latest-posts__featured-image img { transform: scale(1.06); }

/* Título */
.wp-block-latest-posts__post-title {
	display: block; padding: 20px 22px 6px;
	font-size: 1.35rem; font-weight: 700; line-height: 1.25;
	color: var(--pci-texto); text-decoration: none; text-align: left;
}
.wp-block-latest-posts__post-title:hover { color: var(--pci-verde); }

/* Extracto */
.wp-block-latest-posts__post-excerpt {
	display: flex; flex-direction: column; flex: 1;
	padding: 0 22px 24px; font-size: .95rem; line-height: 1.6; color: var(--pci-gris); text-align: left;
}

/* Botón: círculo chico solo con flecha (el texto queda oculto, accesible para lectores de pantalla) */
.wp-block-latest-posts__read-more {
	align-self: flex-start; margin-top: auto; width: 38px; height: 38px; padding: 0;
	display: inline-flex !important; align-items: center; justify-content: center;
	background: var(--pci-verde); color: #fff !important; border-radius: 50%;
	font-size: 0 !important; line-height: 1; text-decoration: none !important;
	transition: background .2s ease, transform .2s ease;
}
.wp-block-latest-posts__read-more::after { content: "\2192"; font-size: 1.15rem; font-weight: 700; color: #fff; }
.wp-block-latest-posts__read-more:hover { background: var(--pci-verde-osc); transform: translateX(3px); }

@media (max-width: 960px) {
	.wp-block-latest-posts.is-grid > li { flex-basis: 45%; max-width: calc((100% - 28px) / 2); }
}
@media (max-width: 600px) {
	.wp-block-latest-posts.is-grid > li { flex-basis: 100%; max-width: 100%; }
}

/* Toda la tarjeta es clickeable: el enlace del título se extiende sobre la tarjeta completa */
.wp-block-latest-posts.is-grid > li { position: relative; cursor: pointer; }
.wp-block-latest-posts__post-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.wp-block-latest-posts__featured-image a { position: relative; z-index: 0; }
.wp-block-latest-posts__read-more { position: relative; z-index: 2; }
