/**
 * Páginas genéricas de WordPress (page.php) — sin plantilla propia.
 * Pensado para contenido largo tipo texto: páginas legales, políticas,
 * y cualquier página simple creada desde el editor de WordPress.
 *
 * Se engancha solo en páginas SIN plantilla propia (ver inc/enqueue.php) —
 * no afecta asesorías, nosotros, trial, ni las páginas de WooCommerce o
 * el dashboard de cliente, que ya tienen su propio diseño.
 */

.page-main {
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
}

.page-article {
	max-width: 760px;
	margin: 0 auto;
	padding: 0 var(--hp-space-4, 1rem);
}

.page-article .entry-header {
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--hp-color-border, #e5e7eb);
}

.page-article .entry-title {
	font-family: var(--hp-font-heading);
	font-size: clamp(var(--hp-fs-3xl, 2rem), 5vw, var(--hp-fs-4xl, 2.5rem));
	font-weight: 800;
	line-height: 1.15;
	color: var(--hp-color-text, #1a1a1a);
	margin: 0;
}

.page-article .entry-thumbnail {
	margin: 0 0 2rem;
	border-radius: 14px;
	overflow: hidden;
}

.page-article .entry-thumbnail img {
	display: block;
	width: 100%;
	height: auto;
}

/* ── Tipografía del contenido ─────────────────────────────────────── */

.page-article .entry-content {
	font-family: var(--hp-font-body);
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--hp-color-text, #1a1a1a);
}

.page-article .entry-content > * + * {
	margin-top: 1.25em;
}

.page-article .entry-content h2 {
	font-family: var(--hp-font-heading);
	font-size: var(--hp-fs-2xl, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
	color: var(--hp-color-text, #1a1a1a);
	margin-top: 2.25em;
	margin-bottom: .6em;
}

.page-article .entry-content h2:first-child {
	margin-top: 0;
}

.page-article .entry-content h3 {
	font-family: var(--hp-font-heading);
	font-size: var(--hp-fs-xl, 1.25rem);
	font-weight: 700;
	line-height: 1.35;
	color: var(--hp-color-text, #1a1a1a);
	margin-top: 1.75em;
	margin-bottom: .5em;
}

.page-article .entry-content h4 {
	font-family: var(--hp-font-heading);
	font-size: var(--hp-fs-lg, 1.125rem);
	font-weight: 700;
	color: var(--hp-color-text, #1a1a1a);
	margin-top: 1.5em;
	margin-bottom: .5em;
}

.page-article .entry-content p {
	margin: 0;
}

.page-article .entry-content strong {
	font-weight: 700;
	color: var(--hp-color-text, #1a1a1a);
}

.page-article .entry-content a {
	color: var(--hp-color-primary, #3b82f6);
	text-decoration: underline;
	text-decoration-color: rgba(59, 130, 246, .35);
	text-underline-offset: 2px;
	transition: text-decoration-color .15s;
}

.page-article .entry-content a:hover,
.page-article .entry-content a:focus-visible {
	text-decoration-color: currentColor;
}

/* Listas */
.page-article .entry-content ul,
.page-article .entry-content ol {
	padding-left: 1.4rem;
}

.page-article .entry-content li {
	margin: 0;
	padding-left: .2rem;
}

.page-article .entry-content li + li {
	margin-top: .5em;
}

.page-article .entry-content ul {
	list-style: none;
}

.page-article .entry-content ul li {
	position: relative;
}

.page-article .entry-content ul li::before {
	content: '';
	position: absolute;
	left: -1.15rem;
	top: .65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--hp-color-primary, #3b82f6);
}

.page-article .entry-content ol {
	list-style: decimal;
}

.page-article .entry-content ol li::marker {
	font-weight: 700;
	color: var(--hp-color-primary, #3b82f6);
}

/* Blockquote */
.page-article .entry-content blockquote {
	margin: 0;
	padding: 1rem 1.5rem;
	border-left: 3px solid var(--hp-color-primary, #3b82f6);
	background: #f8fafc;
	border-radius: 0 10px 10px 0;
	color: var(--hp-color-text-muted, #555);
	font-style: italic;
}

.page-article .entry-content blockquote p {
	margin: 0;
}

/* Separador horizontal */
.page-article .entry-content hr {
	border: none;
	border-top: 1px solid var(--hp-color-border, #e5e7eb);
	margin: 2.5em 0;
}

/* Código inline */
.page-article .entry-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
	background: #f1f5f9;
	padding: .15em .4em;
	border-radius: 4px;
	color: #be185d;
}

/* ── Tablas ────────────────────────────────────────────────────────── */

.page-article .entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92rem;
	border: 1px solid var(--hp-color-border, #e5e7eb);
	border-radius: 10px;
	overflow: hidden;
}

.page-article .entry-content thead th {
	background: var(--hp-color-text, #1a1a1a);
	color: #fff;
	font-weight: 700;
	text-align: left;
	padding: .75rem 1rem;
}

.page-article .entry-content tbody td {
	padding: .7rem 1rem;
	border-top: 1px solid var(--hp-color-border, #e5e7eb);
	vertical-align: top;
}

.page-article .entry-content tbody tr:nth-child(even) {
	background: #f8fafc;
}

/* Paginación multi-página (wp_link_pages) */
.page-article .page-links {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--hp-color-border, #e5e7eb);
	font-size: var(--hp-fs-sm, .875rem);
	color: var(--hp-color-text-muted, #555);
}

.page-article .page-links a {
	color: var(--hp-color-primary, #3b82f6);
	margin: 0 .3rem;
}

@media (max-width: 600px) {
	.page-article .entry-content {
		font-size: 1rem;
	}
	.page-article .entry-content table,
	.page-article .entry-content thead,
	.page-article .entry-content tbody,
	.page-article .entry-content th,
	.page-article .entry-content td,
	.page-article .entry-content tr {
		display: block;
	}
	.page-article .entry-content thead {
		display: none;
	}
	.page-article .entry-content tr {
		border-top: 1px solid var(--hp-color-border, #e5e7eb);
		padding: .75rem 0;
	}
	.page-article .entry-content td {
		border: none;
		padding: .3rem 0;
	}
}
