/* ==============================================================
   PITALÚA — Perspectiva Individual (Single)
   Paridad exacta con pitalua-html-prototype-v2/single-perspectiva.html
   ============================================================== */

/* Layout & common utilities */
.container,
.pitalua-contenedor {
	width: min( calc( 100% - 40px ), var( --max, 1240px ) );
	margin: auto;
}

.container-narrow {
	width: min( calc( 100% - 40px ), 840px );
	margin: auto;
}

.eyebrow,
.pitalua-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	color: var( --gold );
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.eyebrow::after,
.pitalua-eyebrow::after {
	content: "";
	width: 44px;
	height: 1px;
	background: currentColor;
}

.display,
.pitalua-display {
	font-family: var( --serif );
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.14;
	margin: 0;
}

/* BUTTONS & LINKS */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 0 28px;
	border: 1.5px solid transparent;
	font-size: 0.73rem;
	font-weight: 600;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	cursor: pointer;
	line-height: 1;
	position: relative;
	overflow: hidden;
	z-index: 1;
	box-shadow: none;
	text-decoration: none;
	transition: color 0.35s var( --ease ), border-color 0.35s var( --ease );
}

.btn::before {
	content: "";
	position: absolute;
	inset: 0;
	transform: scaleX( 0 );
	transform-origin: left center;
	transition: transform 0.4s cubic-bezier( 0.16, 1, 0.3, 1 );
	z-index: -1;
}

.btn:hover::before {
	transform: scaleX( 1 );
}

.btn-plum {
	background: var( --plum );
	color: var( --ivory );
	border-color: var( --plum );
}

.btn-plum::before {
	background: var( --gold );
}

.btn-plum:hover {
	color: #fff;
	border-color: var( --gold );
}

.btn-gold {
	background: var( --gold );
	color: #241421;
	border-color: var( --gold );
}

.btn-gold::before {
	background: var( --plum );
}

.btn-gold:hover {
	color: #fff;
	border-color: var( --gold );
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.73rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	padding-bottom: 2px;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	background: none;
	border-left: none;
	border-right: none;
	border-top: none;
	padding-left: 0;
	padding-right: 0;
	color: var( --plum );
	text-decoration: none;
	transition: all 0.25s var( --ease );
}

.text-link::after {
	content: "→";
	font-size: 0.95rem;
	transition: transform 0.25s var( --ease );
	display: inline-block;
}

.text-link:hover::after {
	transform: translateX( 5px );
}

.text-link:hover {
	border-bottom-color: currentColor;
	color: var( --gold );
}

/* ARTICLE HEADER */
.single-hero {
	background: var( --plum-deep );
	color: var( --ivory );
	position: relative;
	overflow: hidden;
	padding: clamp( 136px, 16vh, 168px ) 0 clamp( 44px, 6vh, 64px );
}

.single-hero::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: clamp( 380px, 54vw, 700px );
	height: 100%;
	background: url( "../../img/decor/patron-claro.webp" ) center right / 280px repeat;
	opacity: 0.10;
	mask-image: linear-gradient( to left, rgba( 0, 0, 0, 0.92 ) 10%, rgba( 0, 0, 0, 0.35 ) 60%, transparent 100% );
	-webkit-mask-image: linear-gradient( to left, rgba( 0, 0, 0, 0.92 ) 10%, rgba( 0, 0, 0, 0.35 ) 60%, transparent 100% );
	pointer-events: none;
}

.single-hero .container {
	position: relative;
	z-index: 1;
}

.single-hero .breadcrumb {
	display: block;
	font-size: clamp( 0.62rem, 2.2vw, 0.70rem );
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #d8cad2;
	margin: 0 0 20px;
	line-height: 1.5;
}

.single-hero .breadcrumb a {
	color: var( --gold );
	text-decoration: none;
	transition: opacity 0.2s;
	display: inline;
}

.single-hero .breadcrumb a:hover {
	opacity: 0.8;
}

.single-hero .breadcrumb span {
	display: inline;
}

.single-hero .breadcrumb span:not( .current ) {
	margin: 0 6px;
	color: rgba( 216, 202, 210, 0.6 );
}

.single-hero .breadcrumb .current {
	color: #ede3dc;
	opacity: 0.88;
}

.single-hero h1 {
	font-family: var( --serif );
	font-size: clamp( 1.95rem, 3.2vw, 3.1rem );
	max-width: 980px;
	line-height: 1.22;
	color: var( --ivory );
	margin: 0 0 28px;
}

.entry-meta {
	display: flex;
	align-items: center;
	gap: 20px;
	border-top: 1px solid rgba( 249, 241, 233, 0.12 );
	padding-top: 22px;
	flex-wrap: wrap;
}

.author-snippet {
	display: flex;
	align-items: center;
	gap: 14px;
}

.author-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid var( --gold );
}

.author-name {
	font-size: 0.84rem;
	font-weight: 600;
	color: var( --ivory );
	display: block;
}

.author-title {
	font-size: 0.72rem;
	color: #cdbdc8;
	display: block;
}

.meta-divider {
	width: 1px;
	height: 24px;
	background: rgba( 249, 241, 233, 0.18 );
}

.meta-item {
	font-size: 0.78rem;
	color: #dcd0d9;
	display: flex;
	align-items: center;
	gap: 8px;
}

.meta-item svg {
	color: var( --gold );
	flex-shrink: 0;
}

/* FEATURED IMAGE */
.featured-media-wrap {
	background: #fffaf5;
	padding: clamp( 24px, 3.5vw, 40px ) 0 0;
	border-bottom: 1px solid var( --line );
}

.featured-media {
	border: 1px solid var( --line );
	box-shadow: 0 18px 42px rgba( 63, 30, 57, 0.08 );
	position: relative;
	overflow: hidden;
	background: #241421;
}


.featured-media img {
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	display: block;
}

.featured-caption {
	padding: 12px 18px;
	background: var( --ivory-deep );
	font-size: 0.76rem;
	color: var( --muted );
	font-style: italic;
	border-top: 1px solid var( --line );
}

/* ARTICLE CONTENT */
.single-body-wrap {
	padding: clamp( 24px, 3.5vw, 44px ) 0 clamp( 50px, 7vw, 80px );
	background: #fffaf5;
}

.single-body-wrap .container {
	max-width: 820px;
}

.entry-content {
	font-size: clamp( 1rem, 1.1vw, 1.06rem );
	line-height: 1.9;
	color: #3f333e;
}

.entry-content.pitalua-aparicion {
	transition-duration: 0.4s;
}

.entry-content p {
	margin-bottom: 26px;
}

.entry-content h2 {
	font-family: var( --serif );
	font-size: clamp( 1.45rem, 2vw, 1.9rem );
	color: var( --plum );
	margin: 48px 0 20px;
	line-height: 1.3;
	padding-top: 10px;
	border-top: 1px solid var( --line );
}

.entry-content h3 {
	font-family: var( --serif );
	font-size: clamp( 1.2rem, 1.5vw, 1.45rem );
	color: var( --plum );
	margin: 34px 0 16px;
	line-height: 1.35;
}

.entry-content strong {
	color: var( --plum );
	font-weight: 600;
}

.entry-content ul {
	margin: 0 0 28px;
	padding-left: 24px;
}

.entry-content li {
	margin-bottom: 12px;
	padding-left: 6px;
}

.entry-content blockquote {
	margin: 38px 0;
	padding: 28px 34px;
	background: var( --ivory );
	border-left: 3px solid var( --gold );
	border-top: 1px solid var( --line );
	border-bottom: 1px solid var( --line );
	border-right: 1px solid var( --line );
	position: relative;
}

.entry-content blockquote p {
	font-family: var( --sans );
	font-size: clamp( 1.02rem, 1.16vw, 1.14rem );
	line-height: 1.82;
	color: var( --plum );
	margin: 0 !important;
	font-weight: 500;
	font-style: italic;
}

.takeaway-box {
	margin: 44px 0;
	padding: 32px;
	background: var( --plum-deep );
	color: var( --ivory );
	border: 1px solid rgba( 195, 155, 76, 0.4 );
	position: relative;
	overflow: hidden;
}

.takeaway-box::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url( "../../img/decor/patron-ciruela.webp" ) center / 200px repeat;
	opacity: 0.14;
}

.takeaway-inner {
	position: relative;
	z-index: 1;
}

/* The prototype uses an h4 right after h2; the theme uses h3 to avoid the skipped level, with the
   same look (tech-decisions.md §12, invisible differences). h4 kept for content edited before. */
.takeaway-box :is( h3, h4 ) {
	font-family: var( --serif );
	font-size: 1.25rem;
	color: var( --gold );
	margin: 0 0 14px;
	letter-spacing: -0.01em;
	line-height: 1.9; /* the h4 inherited it from .entry-content; .entry-content h3 would set 1.35 */
}

.takeaway-box p {
	color: #f3e8f0;
	font-size: 0.94rem;
	line-height: 1.8;
	margin: 0;
}

.takeaway-box strong,
.takeaway-box p strong {
	color: var( --ivory );
	font-weight: 600;
}

.takeaway-box a {
	color: var( --gold );
	text-decoration: underline;
}

/* SHARE BAR */
.share-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 0;
	margin: 48px 0 0;
	border-top: 1px solid var( --line );
	border-bottom: 1px solid var( --line );
	flex-wrap: wrap;
	gap: 18px;
}

.share-label {
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --gold );
	font-weight: 600;
}

.share-links {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: var( --ivory );
	border: 1px solid var( --line );
	font-size: 0.76rem;
	color: var( --plum );
	font-weight: 500;
	text-decoration: none;
	transition: 0.25s var( --ease );
	cursor: pointer;
	font-family: inherit;
}

.share-btn:hover {
	background: var( --plum );
	color: #fff;
	border-color: var( --plum );
}

.share-btn svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.copy-feedback {
	display: none;
	font-size: 0.75rem;
	color: #1e4d22;
	font-weight: 600;
	margin-left: 8px;
}

/* AUTHOR BIO BOX */
.author-box {
	margin: 54px 0 0;
	padding: clamp( 32px, 4vw, 44px );
	background: var( --ivory );
	border: 1px solid var( --line );
	border-left: 3px solid var( --plum );
	display: grid;
	grid-template-columns: 120px 1fr;
	gap: 28px;
	align-items: start;
}

.author-box-img {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border: 1px solid var( --line );
}

.author-box-body h3 {
	font-family: var( --serif );
	font-size: 1.28rem;
	color: var( --plum );
	margin: 0 0 6px;
}

.author-box-role {
	font-size: 0.76rem;
	color: var( --gold );
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	margin-bottom: 14px;
	display: block;
}

.author-box-body p {
	font-size: 0.88rem;
	line-height: 1.75;
	color: #5a4f58;
	margin: 0 0 18px;
}

.author-box-link {
	font-size: 0.74rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var( --plum );
	font-weight: 600;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	text-decoration: none;
	transition: color 0.2s;
	display: inline-block;
	white-space: nowrap;
}

.author-box-link:hover {
	color: var( --gold );
}

/* RELATED POSTS */
.related-wrap {
	padding: clamp( 64px, 7vw, 90px ) 0;
	background: var( --ivory );
	border-top: 1px solid var( --line );
}

.related-head {
	margin-bottom: 38px;
}

.related-head h3 {
	font-family: var( --serif );
	font-size: clamp( 1.45rem, 2vw, 1.85rem );
	color: var( --plum );
	margin: 0;
}

.related-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.related-card {
	background: #fffaf5;
	border: 1px solid var( --line );
	display: flex;
	flex-direction: column;
	transition: 0.35s var( --ease );
	text-decoration: none;
	color: inherit;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

.related-card:hover {
	transform: translateY( -4px );
	box-shadow: 0 14px 32px rgba( 82, 40, 74, 0.07 );
	background: #fff;
}

.related-img {
	aspect-ratio: 16 / 9;
	width: 100%;
	height: auto;
	overflow: hidden;
	background: var( --plum-deep );
}

.related-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s var( --ease );
	display: block;
}

.related-card:hover .related-img img {
	transform: scale( 1.04 );
}

.related-body {
	padding: 26px 24px 28px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.related-cat {
	font-size: 0.66rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --gold );
	font-weight: 600;
	margin-bottom: 10px;
}

.related-body h4 {
	font-family: var( --serif );
	font-size: 1.15rem;
	color: var( --plum );
	margin: 0 0 12px;
	line-height: 1.35;
}

/* Same clamp as the archive cards: literal excerpts vary from 12 to ~60 words. */
.related-body p {
	font-size: 0.85rem;
	line-height: 1.7;
	color: var( --muted );
	margin: 0 0 20px;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
	min-height: calc( 3em * 1.7 );
}

.related-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid rgba( 82, 40, 74, 0.08 );
	font-size: 0.76rem;
	color: #857582;
	margin-top: auto;
}

/* RESPONSIVE */
@media ( max-width: 980px ) {
	.related-grid {
		grid-template-columns: 1fr;
	}
}


@media ( max-width: 640px ) {
	.author-box {
		grid-template-columns: 1fr;
		text-align: left;
		padding: 28px 22px;
		gap: 18px;
	}

	.author-box-img {
		margin: 0;
		width: 96px;
		height: 96px;
	}

	.author-box-link {
		font-size: clamp( 0.64rem, 2.7vw, 0.70rem );
		letter-spacing: 0.08em;
	}

	.share-bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.eyebrow,
	.pitalua-eyebrow {
		font-size: 0.65rem;
		letter-spacing: 0.14em;
		gap: 10px;
		margin-bottom: 16px;
	}

	.eyebrow::after,
	.pitalua-eyebrow::after {
		width: 28px;
		flex-shrink: 0;
	}

	.single-hero .breadcrumb {
		font-size: 0.60rem;
		letter-spacing: 0.06em;
		line-height: 1.45;
		margin-bottom: 16px;
	}

	.single-hero .breadcrumb span:not( .current ) {
		margin: 0 4px;
	}

	.featured-media-wrap {
		padding: 20px 0 0;
	}

	.single-body-wrap {
		padding-top: 20px;
	}

	.related-meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
		font-size: 0.72rem;
		padding-top: 14px;
	}
}
