/* Compatibilidad mínima sin main.css de GeneratePress */
html,
body {
	background-color: #fdfdfe !important;
}

#page.site {
	background-color: transparent;
}

/* Pies legacy: GeneratePress footer-bar y Code Snippets `.custom-site-footer` */
#footer-widgets,
.site.footer-widgets,
footer.site-info,
.site-footer,
.inside-site-info,
.footer-bar,
.copyright-bar,
footer.custom-site-footer {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/*
 * GeneratePress fija #page.grid-container al ancho del Customizer (p. ej. 1200px);
 * la cabecera usa el container de Tailwind (~1280px en xl), lo que dejaba bandas desalineadas.
 */
#page.site.grid-container.container {
	max-width: 80rem; /* 1280px, alineado a Tailwind container */
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

#primary {
	max-width: 100%;
}

.inside-article {
	max-width: 100%;
}

.entry-content img,
.entry-summary img {
	height: auto;
	max-width: 100%;
}

.page-links {
	margin-top: 1.5rem;
}

.alignwide,
.alignfull {
	max-width: 100%;
}

/* Título de archivo (GeneratePress) — mismo estilo que home-blog-heading (Blade) */
.page-header {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.page-header .page-title {
	margin: 0;
	font-family: 'Sora', 'Inter', system-ui, sans-serif;
	font-size: 1.875rem;
	line-height: 1.25;
	font-weight: 700;
	color: #030712; /* gray-950 */
}

@media (min-width: 768px) {
	.page-header .page-title {
		font-size: 2.25rem;
	}
}

/* ——— Tarjetas (home-blog-posts-grid / Catch Infinite Scroll) ——— */

.dp-post-card .entry-header {
	display: contents;
}

.dp-post-card .entry-meta {
	display: none;
}

/* Botón “Cargar más” y aviso final: fila completa bajo el grid */
.dp-post-grid > #infinite-handle,
.dp-post-grid > .ctis-finished-notice {
	grid-column: 1 / -1;
	width: 100%;
	justify-self: stretch;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/*
 * #ctis-loading: solo ocupar la fila del grid; no forzar display (el plugin usa display:none
 * hasta que hay carga activa; un display:flex aquí rompía el oculto inicial).
 */
.dp-post-grid > #ctis-loading {
	grid-column: 1 / -1;
	width: 100%;
	justify-self: stretch;
	padding-top: 1.5rem;
}

.dp-post-grid > #infinite-handle {
	padding-top: 1.5rem;
}

#infinite-handle .ctis-load-more button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 12rem;
	padding: 0.75rem 1.75rem !important;
	border-radius: 9999px !important;
	background-color: #060720 !important;
	color: #fff !important;
	font-size: 0.9rem !important;
	font-weight: 600 !important;
	font-family: Inter, system-ui, sans-serif !important;
	cursor: pointer;
	border: none !important;
	box-shadow: 0 4px 14px rgba(6, 7, 32, 0.22);
	transition: background 0.2s ease, transform 0.15s ease;
}

#infinite-handle .ctis-load-more button:hover,
#infinite-handle .ctis-load-more button:focus {
	background-color: #141565 !important;
	transform: translateY(-1px);
}

.dp-post-grid > .ctis-finished-notice {
	margin-top: 0.5rem;
	padding-bottom: 1rem;
	color: #6b7280;
	font-size: 0.9rem;
}

/* ——— Entrada individual ——— */

.dp-single-hero .entry-title {
	margin-left: auto;
	margin-right: auto;
}

.dp-single-meta time {
	white-space: nowrap;
}

.dp-single-featured img {
	display: block;
}

.dp-single-post .entry-header {
	margin-bottom: 0;
}

.dp-single-post .entry-meta,
.dp-single-post footer.entry-meta {
	display: none;
}

.dp-single-content .page-links a,
.dp-single-content .page-links > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	padding: 0.35rem 0.65rem;
	border-radius: 0.5rem;
	border: 1px solid #e5e7eb;
	background: #f9fafb;
}

.dp-single-content .page-links a:hover {
	border-color: #cdd1ff;
	background: #f2f3ff;
}

/* Navegación GP por si quedara enganchada */
.dp-single-post nav.paging-navigation,
.dp-single-post .post-navigation {
	display: none;
}
