/* ══════════════════════════════════════════════════════════════
   Vicuña Centros Culturales Widget
   ══════════════════════════════════════════════════════════════ */

.vcent-widget {
	width: 100%;
	overflow: hidden; /* evita que el cuadro flotante se escape de la sección */
}

/* ── Grid ──────────────────────────────────────────────────── */

.vcent-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}

/* ── Tarjeta ───────────────────────────────────────────────── */

.vcent-card {
	display: flex;
	flex-direction: column;
	align-items: center;  /* centra el cuadro blanco sobre la imagen */
	text-decoration: none;
	cursor: pointer;
}


/* ── Imagen ──────────────────────────────────────────────────── */

.vcent-image-wrap {
	position: relative;
	width: 100%;
	overflow: hidden;
	/* padding-top inyectado inline desde PHP para la proporción */
}

.vcent-image-wrap img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.vcent-no-image {
	background-color: #cccccc;
}

/* ── Cuadro blanco flotante ─────────────────────────────────── */

.vcent-info {
	width: 85%;               /* más estrecho que la imagen → efecto flotante */
	background-color: #ffffff;
	padding: 30px 25px 25px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	position: relative;
	z-index: 2;
	margin-top: -60px;        /* sube sobre la imagen — sobreescrito por inline desde PHP */
}

.vcent-title {
	font-size: 22px;
	font-weight: 700;
	color: #1a1a1a !important;
	margin: 0 0 12px;
	line-height: 1.25;
}

.vcent-excerpt {
	font-size: 15px;
	color: #555555;
	margin: 0 0 12px;
	line-height: 1.6;
}

/* ── Leer Más ──────────────────────────────────────────────── */

.vcent-readmore {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #c0392b !important;
	text-decoration: none !important;
	transition: color 0.2s ease, text-decoration 0.2s ease;
	cursor: pointer;
}

.vcent-readmore:hover {
	transform: scale(1.05);
}

/* ── Sin resultados ────────────────────────────────────────── */

.vcent-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #888888;
	font-size: 14px;
	padding: 40px 0;
}

/* ── Botón Leer Más como trigger ───────────────────────────── */

.vcent-readmore--popup {
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit;
	padding: 0 !important;
	cursor: pointer;
	display: inline-block;
	transition: transform 0.2s ease;
}

.vcent-readmore--popup:hover,
.vcent-readmore--popup:focus {
	background: none !important;
	background-color: transparent !important;
	color: inherit !important;
	box-shadow: none !important;
	transform: scale(1.05);
}

/* ── Popup / Modal ──────────────────────────────────────────── */

.vcent-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.vcent-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
}

.vcent-modal-box {
	position: relative;
	background: #ffffff;
	width: 100%;
	max-width: 800px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 4px;
	z-index: 1;
}

.vcent-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #555;
	z-index: 2;
	line-height: 1;
}

.vcent-modal-close:hover { color: #000; }

/* Foto arriba — ocupa todo el ancho */
.vcent-modal-img {
	width: 100%;
	padding-top: 60%;
	background-size: cover;
	background-position: center;
	flex-shrink: 0;
}

/* Contenido debajo de la foto */
.vcent-modal-body {
	padding: 28px 32px 32px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* 1. Título */
.vcent-modal-title {
	font-size: 1.5rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0;
	line-height: 1.2;
}

/* 2. Descripción completa */
.vcent-modal-desc {
	font-size: 15px;
	color: #444444;
	line-height: 1.75;
	margin: 0;
}

.vcent-modal-desc p { margin: 0 0 12px; }
.vcent-modal-desc p:last-child { margin-bottom: 0; }

/* 3. Ubicación — al final */
.vcent-modal-ubicacion {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #c0392b;
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #f0f0f0;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.vcent-grid {
		gap: 16px;
	}
}

@media (max-width: 768px) {
	.vcent-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.vcent-title     { font-size: 20px; }
	.vcent-excerpt   { font-size: 14px; }
	.vcent-info      { padding: 20px; }
	.vcent-readmore  { font-size: 13px; }
	.vcent-no-image  { min-height: 180px; }
}

@media (max-width: 480px) {
	.vcent-grid    { gap: 12px; }
	.vcent-info    { padding: 16px; }
	.vcent-no-image { min-height: 150px; }
}
