/* Reclamamos el ancho disponible de forma explícita: dentro de un contenedor
   flex del Editor V4, un grid puede colapsar a cero de ancho. */
.elementor-widget-publicaciones_externas_pe4375 {
	width: 100%;
	align-self: stretch;
}

.elementor-widget-publicaciones_externas_pe4375 > .elementor-widget-container {
	width: 100%;
}

.pe-grid {
	display: grid;
	width: 100%;
	min-width: 0;
	grid-template-columns: repeat(var(--pe-cols, 3), minmax(0, 1fr));
	gap: var(--pe-gap, 32px);
}

.pe-card--oculta {
	display: none !important;
}

.pe-card {
	display: flex;
	height: 100%;
	min-width: 0;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
	transition: transform .3s ease, box-shadow .3s ease;
}

.pe-grid--lift .pe-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.pe-card__link {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

/* ---------- Imagen ---------- */
.pe-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: var(--pe-ratio, 16 / 9);
	overflow: hidden;
	background: #f0f0f0;
}

.pe-card__media img,
.pe-card__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}

.pe-grid--zoom .pe-card:hover .pe-card__img {
	transform: scale(1.05);
}

.pe-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #e8e8e8 10px, #e8e8e8 20px);
}

/* ---------- Etiqueta del medio ---------- */
.pe-card__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 2;
	display: inline-block;
	max-width: calc(100% - 32px);
	padding: 8px 14px;
	border-radius: 6px;
	background: rgba(17, 17, 17, .78);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------- Cuerpo ---------- */
.pe-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1 1 auto;
	padding: 24px;
}

.pe-card__meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	font-size: 15px;
	line-height: 1.4;
}

.pe-grid--meta-inline .pe-card__meta {
	justify-content: flex-start;
}

.pe-card__medio {
	font-weight: 700;
	color: #111111;
}

.pe-card__date {
	color: #6b7280;
	white-space: nowrap;
}

.pe-card__sep {
	color: #9ca3af;
}

.pe-grid:not(.pe-grid--meta-inline) .pe-card__sep {
	display: none;
}

.pe-card__title {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.28;
	color: #111111;
	transition: color .25s ease;
}

.pe-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #4b5563;
}

/* ---------- Botón de la tarjeta ---------- */
.pe-card__cue {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	align-self: flex-start;
	margin-top: auto;
	padding: 10px 18px;
	border: 1px solid #111111;
	border-radius: 6px;
	background: transparent;
	color: #111111;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.pe-card:hover .pe-card__cue {
	background: #111111;
	color: #ffffff;
}

.pe-grid--cue-text .pe-card__cue {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	text-transform: uppercase;
	letter-spacing: .04em;
	font-size: 13px;
}

.pe-grid--cue-text .pe-card:hover .pe-card__cue {
	background: none;
	color: inherit;
}

.pe-card__arrow {
	transition: transform .25s ease;
}

.pe-card:hover .pe-card__arrow {
	transform: translate(2px, -2px);
}

.pe-card__cue-spacer {
	margin-top: auto;
}

/* ---------- Botón “ver más” ---------- */
.pe-mas {
	display: flex;
	justify-content: var(--pe-mas-align, center);
	margin-top: var(--pe-mas-top, 32px);
}

.pe-btn-mas {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 26px;
	border: 1px solid var(--pe-mas-borde, #111111);
	border-radius: 6px;
	background: var(--pe-mas-fondo, transparent);
	color: var(--pe-mas-color, #111111);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.pe-btn-mas:hover,
.pe-btn-mas:focus-visible {
	background: var(--pe-mas-fondo-hover, #111111);
	color: var(--pe-mas-color-hover, #ffffff);
	border-color: var(--pe-mas-borde-hover, #111111);
}

.pe-empty {
	padding: 24px;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	text-align: center;
	font-size: 14px;
	color: #767676;
}
