/*
Theme Name: Palabras de Luz
Theme URI: https://palabrasdeluz.com/
Author: Palabras de Luz
Author URI: https://palabrasdeluz.com/
Description: Tema de bloques ligero, accesible y orientado a contenido bíblico y devocional.
Version: 0.3.0
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 8.1
Text Domain: palabrasdeluz
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--pdl-ivory: #fbf8f1;
	--pdl-paper: #ffffff;
	--pdl-ink: #17324d;
	--pdl-ocean: #275e7a;
	--pdl-sky: #deeff6;
	--pdl-gold: #b8872d;
	--pdl-mist: #edf2f4;
	--pdl-muted: #52677a;
	--pdl-border: #d9e1e5;
	--pdl-shadow: 0 18px 45px rgb(23 50 77 / 9%);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	background: var(--pdl-ivory);
	color: var(--pdl-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1.125rem;
	line-height: 1.72;
}

a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover {
	text-decoration-thickness: 0.13em;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid var(--pdl-gold);
	outline-offset: 3px;
}

.wp-site-blocks {
	min-height: 100vh;
}

.pdl-site-header {
	background: rgb(251 248 241 / 96%);
	border-bottom: 1px solid var(--pdl-border);
	backdrop-filter: blur(12px);
	position: relative;
	z-index: 20;
}

.pdl-header-inner {
	min-height: 76px;
}

.pdl-brand-logo {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
	text-decoration: none;
}

.pdl-brand-logo img {
	display: block;
	height: auto;
	max-width: 100%;
}

.pdl-brand-logo--header img {
	width: clamp(10.5rem, 19vw, 15.625rem);
}

.pdl-header-inner .wp-block-navigation-item__content {
	text-decoration: none;
}

.pdl-header-inner .wp-block-navigation-item__content:hover {
	color: var(--pdl-ocean);
}

.pdl-main {
	min-height: 55vh;
}

.pdl-hero {
	background:
		radial-gradient(circle at 85% 20%, rgb(184 135 45 / 20%), transparent 24rem),
		linear-gradient(135deg, #17324d 0%, #275e7a 100%);
	border-radius: 0 0 36px 36px;
	color: #ffffff;
	overflow: hidden;
}

.pdl-hero h1,
.pdl-hero p {
	color: inherit;
}

.pdl-kicker {
	color: #f5d99e;
	font-size: 0.82rem;
	font-weight: 750;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.pdl-introduccion {
	color: var(--pdl-muted);
	font-size: clamp(1.15rem, 2vw, 1.32rem);
	line-height: 1.65;
}

.pdl-section-heading {
	margin-bottom: 0.55rem;
}

.pdl-section-intro {
	color: var(--pdl-muted);
	margin-top: 0;
}

.pdl-card-grid > .wp-block-post {
	height: 100%;
}

.pdl-card {
	background: var(--pdl-paper);
	border: 1px solid var(--pdl-border);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgb(23 50 77 / 6%);
	height: 100%;
	overflow: hidden;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.pdl-card:hover {
	box-shadow: var(--pdl-shadow);
	transform: translateY(-3px);
}

.pdl-card .wp-block-post-featured-image img {
	display: block;
	object-fit: cover;
	width: 100%;
}

.pdl-card-content {
	padding: clamp(1.1rem, 3vw, 1.6rem);
}

.pdl-card .wp-block-post-title a {
	text-decoration: none;
}

.pdl-card .wp-block-post-excerpt__excerpt {
	color: var(--pdl-muted);
}

.pdl-topic-card {
	background: var(--pdl-paper);
	border: 1px solid var(--pdl-border);
	border-radius: 16px;
	box-shadow: 0 8px 22px rgb(23 50 77 / 5%);
	min-height: 100%;
	padding: 1.25rem;
}

.pdl-topic-card a {
	display: block;
	font-weight: 700;
	text-decoration: none;
}

.pdl-biblical-foundation {
	background: var(--pdl-sky);
	border-left: 5px solid var(--pdl-gold);
	border-radius: 0 16px 16px 0;
	margin-block: 2rem;
	padding: clamp(1.2rem, 4vw, 1.8rem);
}

.pdl-biblical-foundation h2 {
	font-size: 1.25rem;
	margin: 0 0 0.8rem;
}

.pdl-biblical-foundation dl,
.pdl-biblical-foundation dd {
	margin: 0;
}

.pdl-biblical-foundation dl > div {
	display: grid;
	gap: 0.2rem;
	grid-template-columns: minmax(9rem, 0.35fr) 1fr;
	padding-block: 0.4rem;
}

.pdl-biblical-foundation dt {
	font-weight: 750;
}

.pdl-editorial-section {
	margin-block: 2.2rem;
}

.pdl-editorial-section h2 {
	margin-bottom: 0.7rem;
}

.pdl-author-byline {
	color: var(--pdl-muted);
	font-size: 0.95rem;
	margin: 0.25rem 0 0;
}

.pdl-author-byline a {
	color: var(--pdl-ocean);
	font-weight: 750;
}

.pdl-related-content {
	border-top: 1px solid var(--pdl-border);
	margin-top: clamp(3.5rem, 8vw, 6rem);
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.pdl-related-header {
	max-width: 46rem;
}

.pdl-related-header h2 {
	font-size: clamp(2rem, 5vw, 3rem);
	margin: 0.2rem 0 0.55rem;
}

.pdl-related-header > p:last-child {
	color: var(--pdl-muted);
	margin-top: 0;
}

.pdl-related-kicker,
.pdl-related-type {
	color: var(--pdl-ocean);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	margin: 0;
	text-transform: uppercase;
}

.pdl-related-grid {
	display: grid;
	gap: clamp(1rem, 3vw, 1.5rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 1.8rem;
}

.pdl-related-card {
	background: var(--pdl-paper);
	border: 1px solid var(--pdl-border);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgb(23 50 77 / 6%);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: box-shadow 160ms ease, transform 160ms ease;
}

.pdl-related-card:hover {
	box-shadow: var(--pdl-shadow);
	transform: translateY(-3px);
}

.pdl-related-visual {
	background: linear-gradient(135deg, var(--pdl-ink), var(--pdl-ocean));
	display: block;
	overflow: hidden;
	text-decoration: none;
}

.pdl-related-visual img,
.pdl-related-placeholder {
	aspect-ratio: 3 / 2;
	display: block;
	height: auto;
	object-fit: cover;
	width: 100%;
}

.pdl-related-placeholder {
	align-items: center;
	color: #f5d99e;
	display: flex;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.25rem;
	font-weight: 700;
	justify-content: center;
}

.pdl-related-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: clamp(1.15rem, 3vw, 1.55rem);
}

.pdl-related-card h3 {
	font-size: clamp(1.2rem, 2.5vw, 1.45rem);
	line-height: 1.3;
	margin: 0.45rem 0 0.65rem;
}

.pdl-related-card h3 a {
	color: inherit;
	text-decoration: none;
}

.pdl-related-excerpt {
	color: var(--pdl-muted);
	font-size: 0.98rem;
	line-height: 1.55;
	margin: 0;
}

.pdl-related-link {
	font-size: 0.95rem;
	font-weight: 750;
	margin-top: auto;
	padding-top: 1.1rem;
	text-decoration: none;
}

.pdl-newsletter {
	background:
		radial-gradient(circle at 92% 12%, rgb(184 135 45 / 16%), transparent 18rem),
		linear-gradient(145deg, #ffffff 0%, #f3f8fa 100%);
	border: 1px solid var(--pdl-border);
	border-radius: 24px;
	box-shadow: var(--pdl-shadow);
	margin-block: clamp(3rem, 8vw, 5.5rem);
	overflow: hidden;
	padding: clamp(1rem, 3vw, 2rem);
}

.pdl-newsletter__form {
	min-height: 360px;
}

.pdl-newsletter iframe {
	border: 0;
	display: block;
	max-width: 100%;
	width: 100%;
}

.pdl-article-header {
	padding-top: clamp(2.5rem, 8vw, 5.5rem);
}

.pdl-article-meta {
	color: var(--pdl-muted);
	font-size: 0.95rem;
}

.pdl-article-content > * + * {
	margin-block-start: 1.25em;
}

.pdl-article-content h2 {
	margin-block-start: 2.1em;
}

.pdl-article-content h3 {
	margin-block-start: 1.7em;
}

.pdl-article-content blockquote {
	border-left: 4px solid var(--pdl-gold);
	color: var(--pdl-ink);
	font-size: 1.15em;
	margin-inline: 0;
	padding-left: 1.25rem;
}

.pdl-cta {
	background: var(--pdl-sky);
	border: 1px solid #c6dde7;
	border-radius: 24px;
}

.pdl-support-cta {
	background: var(--pdl-ink);
	border-radius: 24px;
	color: #ffffff;
}

.pdl-support-cta h2,
.pdl-support-cta p {
	color: inherit;
}

.pdl-empty-state {
	background: var(--pdl-paper);
	border: 1px dashed var(--pdl-border);
	border-radius: 16px;
	color: var(--pdl-muted);
	padding: 1.25rem;
}

.pdl-site-footer {
	background: var(--pdl-ink);
	color: #ffffff;
	margin-top: clamp(3rem, 8vw, 7rem);
}

.pdl-site-footer a,
.pdl-site-footer p,
.pdl-site-footer .wp-block-site-title {
	color: inherit;
}

.pdl-site-footer a {
	text-decoration-color: rgb(255 255 255 / 50%);
}

.pdl-site-footer h3 {
	color: inherit;
	font-family: inherit;
	font-weight: 750;
	margin-block: 0 0.8rem;
}

.pdl-brand-logo--footer {
	margin-bottom: 1rem;
}

.pdl-brand-logo--footer img {
	width: min(100%, 20rem);
}

.pdl-footer-links .wp-block-navigation {
	gap: 0.45rem;
}

.pdl-footer-social {
	gap: 0.85rem;
	margin-block: 0;
}

.pdl-footer-social .wp-social-link {
	background: rgb(255 255 255 / 10%);
	border: 1px solid rgb(255 255 255 / 24%);
	transition: background-color 160ms ease, transform 160ms ease;
}

.pdl-footer-social .wp-social-link:hover {
	background: var(--pdl-gold);
	transform: translateY(-2px);
}

.pdl-footer-social .wp-social-link a {
	padding: 0.72rem;
}

@media (max-width: 781px) {
	body {
		font-size: 1.0625rem;
	}

	.pdl-header-inner {
		min-height: 66px;
	}

	.pdl-brand-logo--header img {
		width: 10.5rem;
	}

	.pdl-hero {
		border-radius: 0 0 24px 24px;
	}

	.pdl-biblical-foundation dl > div {
		grid-template-columns: 1fr;
	}

	.pdl-related-grid {
		grid-template-columns: 1fr;
	}

	.pdl-footer-columns {
		gap: 2rem;
	}
}

@media (min-width: 782px) and (max-width: 1050px) {
	.pdl-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	.pdl-site-header,
	.pdl-site-footer,
	.wp-block-navigation,
	.pdl-support-cta,
	.pdl-cta,
	.pdl-newsletter,
	.pdl-related-content {
		display: none !important;
	}

	body {
		background: #ffffff;
		color: #000000;
		font-size: 12pt;
	}
}
