/* ============================================================
   Estilos para posts con plantilla "ek-post" (Edukacción)
   Diseño editorial cálido — paleta crema/terracota Montessori
   ============================================================ */

:root {
	--ek-cream: #faf6f0;
	--ek-paper: #fffdf9;
	--ek-ink: #2b2420;
	--ek-ink-soft: #5a4f48;
	--ek-terracotta: #b65d3e;
	--ek-terracotta-deep: #8a4329;
	--ek-sage: #6b8068;
	--ek-gold: #c89a4a;
	--ek-line: #e7dccd;
}

.ek-post {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 24px 96px;
	background: var(--ek-paper);
	color: var(--ek-ink);
	font-family: 'Manrope', system-ui, -apple-system, sans-serif;
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* Kicker + título */
.ek-post .ek-kicker {
	display: inline-block;
	font-family: 'Manrope', sans-serif;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--ek-terracotta);
	margin: 0 0 18px;
	padding: 6px 14px;
	border: 1px solid var(--ek-terracotta);
	border-radius: 999px;
}

.ek-post .ek-meta {
	font-size: 14px;
	color: var(--ek-ink-soft);
	margin: 0 0 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--ek-line);
}
.ek-post .ek-meta strong { color: var(--ek-ink); font-weight: 600; }

/* Hero */
.ek-post .ek-hero {
	margin: 0 -24px 40px;
	overflow: hidden;
}
.ek-post .ek-hero img {
	width: 100%;
	height: auto;
	display: block;
}
.ek-post .ek-hero figcaption {
	font-size: 13px;
	color: var(--ek-ink-soft);
	text-align: center;
	margin-top: 10px;
	padding: 0 24px;
	font-style: italic;
}

/* Cuerpo */
.ek-post p { margin: 0 0 22px; }
.ek-post p.lead {
	font-family: 'Fraunces', Georgia, serif;
	font-size: 1.32em;
	line-height: 1.5;
	color: var(--ek-ink);
	font-weight: 300;
}
.ek-post p.lead::first-letter {
	font-size: 3.6em;
	float: left;
	line-height: 0.85;
	margin: 0.08em 0.08em 0 -0.04em;
	color: var(--ek-terracotta);
	font-weight: 500;
}

/* Encabezados */
.ek-post h2 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	font-size: clamp(1.6rem, 3vw, 2.05rem);
	line-height: 1.2;
	margin: 56px 0 18px;
	color: var(--ek-ink);
	position: relative;
	padding-top: 24px;
}
.ek-post h2::before {
	content: '';
	display: block;
	width: 44px;
	height: 2px;
	background: var(--ek-terracotta);
	position: absolute;
	top: 0;
	left: 0;
}

.ek-post h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	font-style: italic;
	font-size: 1.4rem;
	margin: 40px 0 14px;
	color: var(--ek-terracotta-deep);
}

/* Listas */
.ek-post ul {
	list-style: none;
	padding: 0;
	margin: 24px 0 28px;
}
.ek-post ul li {
	position: relative;
	padding: 10px 0 10px 34px;
	border-bottom: 1px dashed var(--ek-line);
}
.ek-post ul li:last-child { border-bottom: none; }
.ek-post ul li::before {
	content: '';
	position: absolute;
	left: 4px;
	top: 22px;
	width: 14px;
	height: 14px;
	background: var(--ek-gold);
	border-radius: 50%;
	box-shadow: 0 0 0 4px var(--ek-paper), 0 0 0 5px var(--ek-gold);
	opacity: 0.85;
}
.ek-post ul li strong { color: var(--ek-ink); }

/* Pullquote */
.ek-post .ek-pullquote {
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-size: 1.6rem;
	line-height: 1.3;
	color: var(--ek-terracotta-deep);
	text-align: center;
	margin: 48px 0;
	padding: 32px 24px;
	border-top: 1px solid var(--ek-line);
	border-bottom: 1px solid var(--ek-line);
	position: relative;
}
.ek-post .ek-pullquote::before {
	content: '\201C';
	font-size: 4rem;
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--ek-paper);
	padding: 0 16px;
	color: var(--ek-gold);
	line-height: 1;
}

/* Diplomas (wp:columns con className ek-diplomas) */
.ek-post .ek-diplomas {
	margin: 40px 0;
	gap: 18px;
}
.ek-post .ek-diplomas .wp-block-column figure,
.ek-post .ek-diplomas figure {
	margin: 0;
	background: var(--ek-cream);
	padding: 14px 14px 12px;
	border: 1px solid var(--ek-line);
	border-radius: 4px;
	box-shadow: 0 8px 24px -16px rgba(43, 36, 32, 0.25);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ek-post .ek-diplomas figure:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px -16px rgba(43, 36, 32, 0.35);
}
.ek-post .ek-diplomas img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid var(--ek-line);
}
.ek-post .ek-diplomas figcaption {
	font-size: 13px;
	color: var(--ek-ink-soft);
	text-align: center;
	margin-top: 10px;
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
}
.ek-post .ek-diplomas figcaption strong {
	display: block;
	font-style: normal;
	color: var(--ek-ink);
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 2px;
}

/* CTA */
.ek-post .ek-cta {
	margin: 56px 0 24px;
	padding: 36px 32px;
	background: linear-gradient(135deg, #f5ece0 0%, #ede2d2 100%);
	border-radius: 6px;
	text-align: center;
	border: 1px solid var(--ek-line);
}
.ek-post .ek-cta h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-style: normal;
	font-size: 1.6rem;
	margin: 0 0 12px;
	color: var(--ek-ink);
}
.ek-post .ek-cta p { margin: 0 0 20px; color: var(--ek-ink-soft); }
.ek-post .ek-cta a.ek-btn,
.ek-post .ek-cta .wp-block-button__link {
	display: inline-block;
	background: var(--ek-terracotta) !important;
	color: #fff !important;
	text-decoration: none !important;
	padding: 14px 30px !important;
	border-radius: 999px !important;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.02em;
	border: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}
.ek-post .ek-cta a.ek-btn:hover,
.ek-post .ek-cta .wp-block-button__link:hover {
	background: var(--ek-terracotta-deep) !important;
	transform: translateY(-1px);
}

/* Firma */
.ek-post .ek-sign {
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--ek-line);
	text-align: right;
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	color: var(--ek-ink-soft);
}
.ek-post .ek-sign strong {
	display: block;
	font-style: normal;
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	color: var(--ek-ink);
	font-size: 1rem;
	letter-spacing: 0.02em;
}

@media (max-width: 600px) {
	.ek-post .ek-diplomas { grid-template-columns: 1fr; }
	.ek-post { padding: 32px 20px 64px; }
}
