/* ====================================
   ARTÍCULO INDIVIDUAL — DRAU Design
   ==================================== */

.article-page::before { display: none; }
.article-page { background: #FFFBFF; }

.article-page .logo-link {
	position: absolute;
}
.article-page .menu-toggle-label {
	position: absolute;
}

.article-main {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 6% 100px;
	font-family: 'F37 Ginger', sans-serif;
}

/* ===== HEADER FULL-WIDTH ===== */
.article-header {
	position: relative;
	width: 100%;
	background: linear-gradient(135deg, #EEF3FB 0%, #E2E7F5 100%);
	padding: 140px 6% 70px;
	margin-bottom: 70px;
}
.article-header-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}
.article-header-text {
	display: flex;
	flex-direction: column;
}
.article-back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: flex-start;
	padding: 8px 16px;
	margin-bottom: 28px;
	background: #ffffff;
	color: #00197E;
	font-weight: bold;
	font-size: 13px;
	text-decoration: none;
	border-radius: 50px;
	border: 1px solid rgba(0, 25, 126, 0.15);
	box-shadow: 0 4px 12px rgba(0, 25, 126, 0.05);
	transition: transform 0.2s ease, color 0.2s ease;
}
.article-back:hover {
	transform: translateX(-3px);
	color: #05A0E6;
}
.article-title {
	font-size: 44px;
	font-weight: bold;
	line-height: 1.08;
	letter-spacing: -1.5px;
	color: #00197E;
	margin: 0 0 18px;
}
.article-subtitle {
	font-size: 17px;
	font-weight: normal;
	color: #4A5568;
	margin: 0 0 32px;
	line-height: 1.45;
	max-width: 520px;
}

/* Autor */
.article-author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}
.author-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: contain;
	background: #ffffff;
	flex-shrink: 0;
	box-shadow: 0 6px 16px rgba(0, 25, 126, 0.2);
}
.author-info { line-height: 1.3; }
.author-name {
	font-size: 14px;
	font-weight: bold;
	color: #00197E;
	margin: 0;
}
.author-meta {
	font-size: 13px;
	color: #8b95b8;
	margin: 2px 0 0;
}

/* Tags + share */
.article-meta-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}
.article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.article-tag-pill {
	display: inline-block;
	padding: 6px 14px;
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.5px;
	border-radius: 50px;
}
.tag-blue { background: #DAE7F8; color: #00197E; }
.tag-yellow { background: #FFF1C2; color: #8a6a00; }
.tag-green { background: #D6F0CC; color: #2d5e1e; }
.tag-red { background: #FBDED8; color: #8F2D24; }

.article-share {
	display: flex;
	gap: 8px;
}
.share-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(0, 25, 126, 0.15);
	background: #ffffff;
	color: #00197E;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
	padding: 0;
}
.share-btn:hover {
	transform: translateY(-2px);
	background: #00197E;
	color: #ffffff;
}
.share-btn.copied {
	background: #5FAD41;
	color: #ffffff;
	border-color: #5FAD41;
}

/* Hero image */
.article-hero {
	margin: 0;
	border-radius: 20px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	box-shadow: 0 30px 60px -20px rgba(0, 25, 126, 0.2);
}
.article-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.article-hero .blog-img-placeholder {
	position: relative;
}

/* ===== LAYOUT BODY (sidebar + content) ===== */
.article-layout {
	display: grid;
	grid-template-columns: 240px 1fr;
	gap: 80px;
	align-items: start;
}

/* ===== TOC SIDEBAR ===== */
.article-toc {
	position: sticky;
	top: 100px;
	padding: 24px 24px 24px 0;
	border-right: 1px solid rgba(0, 25, 126, 0.1);
}
.toc-label {
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #8b95b8;
	margin: 0 0 16px;
}
.toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
}
.toc-list li {
	counter-increment: toc;
	margin-bottom: 6px;
}
.toc-list a {
	display: block;
	position: relative;
	padding: 10px 12px 10px 36px;
	font-size: 14px;
	color: #4A5568;
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
	line-height: 1.4;
}
.toc-list a::before {
	content: counter(toc);
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-weight: bold;
	color: #00197E;
}
.toc-list a:hover {
	background: rgba(0, 25, 126, 0.06);
	color: #00197E;
}

/* ===== BODY ===== */
.article-body {
	color: #2d3748;
	font-size: 18px;
	line-height: 1.7;
}
.article-lead {
	font-size: 18px;
	line-height: 1.7;
	color: #00197E;
	margin: 0 0 24px;
	font-weight: normal;
}
.article-body p {
	font-size: 18px;
	line-height: 1.7;
	margin: 0 0 20px;
}
.article-body h2 {
	font-size: 28px;
	font-weight: bold;
	line-height: 1.2;
	letter-spacing: -0.8px;
	color: #00197E;
	margin: 50px 0 16px;
	scroll-margin-top: 100px;
}
.article-body h2 + .article-h2-sub {
	margin-top: -10px;
	margin-bottom: 20px;
	font-size: 17px;
	color: #8b95b8;
	font-style: italic;
}
.article-body h3 {
	font-size: 20px;
	font-weight: bold;
	line-height: 1.3;
	color: #00197E;
	margin: 36px 0 12px;
	letter-spacing: -0.3px;
}
.article-body ul,
.article-body ol {
	margin: 0 0 24px;
	padding-left: 20px;
	font-size: 18px;
	line-height: 1.7;
}
.article-body li {
	font-size: 18px;
	line-height: 1.7;
	margin-bottom: 8px;
}
.article-body ul li { list-style: disc; }
.article-body ol li { list-style: decimal; }
.article-body strong {
	color: #00197E;
	font-weight: bold;
}
.article-body em { color: #4A5568; }
.article-body a {
	color: #05A0E6;
	font-weight: bold;
	text-decoration: none;
	border-bottom: 1px solid rgba(5, 160, 230, 0.3);
}
.article-body a:hover { border-color: #05A0E6; }

/* Imagen inline */
.article-inline-img {
	margin: 36px 0;
}
.article-inline-img .blog-img-placeholder {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 40px -16px rgba(0, 25, 126, 0.18);
}
.article-inline-img img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 16px;
	box-shadow: 0 20px 40px -16px rgba(0, 25, 126, 0.18);
}
.article-inline-img figcaption {
	margin-top: 16px;
	padding: 0 4px;
	font-size: 14px;
	color: #8b95b8;
	font-style: italic;
	text-align: left;
}

.article-closing {
	font-size: 18px;
	line-height: 1.7;
	color: #00197E;
	border-left: 4px solid #ED6A5A;
	padding-left: 20px;
	margin: 36px 0 50px;
}

/* Artículos relacionados */
.article-related {
	margin-top: 50px;
	padding: 40px;
	background: #F5F7FB;
	border-radius: 12px;
}
.article-related h3 {
	font-size: 18px;
	font-weight: bold;
	color: #00197E;
	margin: 0 0 22px;
	letter-spacing: -0.3px;
}
.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px;
}
.related-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px;
	background: #ffffff;
	border-radius: 10px;
	border: 1px solid #E2E8F0;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 25, 126, 0.12);
}
.related-card h4 {
	font-size: 15px;
	font-weight: 600;
	color: #00197E;
	margin: 0;
	line-height: 1.4;
}
.related-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #05A0E6;
	background: rgba(5, 160, 230, 0.1);
	padding: 3px 10px;
	border-radius: 20px;
	align-self: flex-start;
}

/* CTA al final */
.article-cta {
	margin-top: 60px;
	padding: 40px;
	background: linear-gradient(135deg, #00197E 0%, #002bb0 100%);
	border-radius: 20px;
	box-shadow: 0 30px 60px -20px rgba(0, 25, 126, 0.35);
	text-align: center;
	color: #ffffff;
}
.article-cta h3 {
	font-size: 24px;
	font-weight: bold;
	color: #ffffff;
	margin: 0 0 12px;
	letter-spacing: -0.5px;
}
.article-cta p {
	font-size: 16px;
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 24px;
	line-height: 1.5;
}
.article-cta-btn {
	display: inline-block;
	padding: 14px 32px;
	background: #ffffff;
	color: #00197E !important;
	font-weight: bold;
	font-size: 15px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-decoration: none !important;
	border-radius: 50px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.article-cta-btn:hover {
	color: #00197E !important;
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 1100px) {
	.article-title { font-size: 38px; }
	.article-header { gap: 40px; }
	.article-layout { grid-template-columns: 200px 1fr; gap: 50px; }
}

@media only screen and (max-width: 900px) {
	.article-header { padding: 120px 6% 50px; }
	.article-header-inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	.article-hero { order: -1; aspect-ratio: 16 / 9; }
	.article-layout {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	.article-toc {
		position: relative;
		top: auto;
		padding: 20px 24px;
		border-right: none;
		background: #ffffff;
		border-radius: 16px;
		box-shadow: 0 12px 30px -10px rgba(0, 25, 126, 0.1);
	}
}

@media only screen and (max-width: 768px) {
	.article-main { padding: 40px 6% 70px; }
	.article-header { padding: 100px 6% 40px; margin-bottom: 40px; }
	.article-title { font-size: 30px; letter-spacing: -1px; text-align: left; }
	.article-subtitle { font-size: 15px; text-align: left; }
	.article-lead { font-size: 16px; }
	.article-body { font-size: 16px; }
	.article-body p,
	.article-body ul, .article-body ol,
	.article-body li { font-size: 16px; line-height: 1.7; }
	.article-body h2 { font-size: 24px; margin: 40px 0 14px; text-align: left; }
	.article-body h3 { font-size: 18px; margin: 28px 0 10px; text-align: left; }
	.article-hero { border-radius: 14px; }
	.article-related { padding: 28px 20px; }
	.article-related h3 { font-size: 16px; margin-bottom: 14px; }
	.article-related li { margin-bottom: 10px; font-size: 15px; }
	.article-cta { padding: 30px 24px; }
	.article-cta h3 { font-size: 20px; text-align: center; }
	.article-closing { font-size: 16px; padding-left: 16px; }
	.article-meta-row { flex-direction: column; align-items: flex-start; }
}

@media only screen and (max-width: 480px) {
	.article-title { font-size: 26px; }
	.article-body { font-size: 15px; }
	.article-body p,
	.article-body ul, .article-body ol,
	.article-body li { font-size: 15px; line-height: 1.7; }
	.article-lead { font-size: 15px; }
	.article-closing { font-size: 15px; }
	.author-avatar { width: 40px; height: 40px; }
}
