/* ============================================================
   Single post styles
   ============================================================ */

/* ── Hero del post ──────────────────────────────────────── */
.single-hero {
	padding: 100px 40px 60px;
	background: linear-gradient(160deg, #fff 0%, #fdf0f6 60%, #fce4ec 100%);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.single-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 50%, rgba(229, 0, 126, 0.06) 0%, transparent 55%),
	            radial-gradient(circle at 80% 30%, rgba(0, 158, 226, 0.04) 0%, transparent 50%);
	pointer-events: none;
}

.single-hero__cat {
	display: inline-block;
	background: var(--magenta);
	color: #fff;
	font-family: 'Archivo', sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 5px 14px;
	border-radius: 20px;
	text-decoration: none;
	margin-bottom: 20px;
	transition: background 0.25s ease;
}

.single-hero__cat:hover {
	background: #c70069;
	color: #fff;
}

.single-hero__title {
	font-family: 'Roboto', sans-serif;
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	color: var(--negro);
	max-width: 820px;
	margin: 0 auto 24px;
	line-height: 1.25;
}

.single-hero__meta {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	font-size: 13px;
	color: #888;
}

.single-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.single-hero__meta-item a {
	color: #888;
	text-decoration: none;
	transition: color 0.2s ease;
}

.single-hero__meta-item a:hover {
	color: var(--magenta);
}

/* ── Imagen destacada ───────────────────────────────────── */
.single-featured {
	margin-top: -20px;
	margin-bottom: 0;
}

.single-featured img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 20px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* ── Layout principal ───────────────────────────────────── */
.single-layout {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 48px;
	align-items: start;
	margin-top: 48px;
}

/* ── Contenido del artículo ─────────────────────────────── */
.single-content {
	min-width: 0;
}

.single-content p {
	font-size: 16px;
	line-height: 1.9;
	color: #444;
	margin-bottom: 24px;
}

.single-content h2 {
	font-family: 'Roboto', sans-serif;
	font-size: clamp(1.3rem, 2.5vw, 1.7rem);
	color: var(--magenta);
	margin: 40px 0 16px;
}

.single-content h3,
.single-content h4,
.single-content h5 {
	font-family: 'Roboto', sans-serif;
	color: var(--negro);
	margin: 32px 0 12px;
}

.single-content h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.single-content h4 { font-size: 1.05rem; }
.single-content h5 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }

.single-content a {
	color: var(--magenta);
	text-decoration: underline;
	text-underline-offset: 3px;
	transition: color 0.2s ease;
}

.single-content a:hover {
	color: #c70069;
}

.single-content strong {
	font-weight: 700;
	color: var(--negro);
}

.single-content em {
	font-style: italic;
}

/* Cita destacada (texto centrado en 24px del viejo blog) */
.single-content p[style*="text-align: center"],
.single-content p[style*="text-align:center"] {
	background: linear-gradient(135deg, #fce4ec, #fce4ec);
	border-left: 4px solid var(--magenta);
	border-radius: 12px;
	padding: 20px 28px;
	font-size: 1.05rem !important;
	line-height: 1.65;
	color: var(--negro) !important;
	margin: 32px 0;
	text-align: left !important;
}

/* Listas */
.single-content ul,
.single-content ol {
	padding-left: 24px;
	margin-bottom: 24px;
}

.single-content li {
	font-size: 15px;
	line-height: 1.8;
	color: #444;
	margin-bottom: 6px;
}

.single-content li strong a,
.single-content li a {
	color: var(--magenta);
}

/* Imágenes dentro del contenido */
.single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	display: block;
	margin: 8px auto 24px;
}

/* Blockquote */
.single-content blockquote {
	border-left: 4px solid var(--magenta);
	background: #fdf0f6;
	border-radius: 0 12px 12px 0;
	padding: 20px 24px;
	margin: 28px 0;
	font-style: italic;
	color: var(--negro);
}

/* ── Sidebar ────────────────────────────────────────────── */
.single-sidebar {
	position: sticky;
	top: 100px;
}

.sidebar-box {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 24px;
	margin-bottom: 24px;
}

.sidebar-box__title {
	font-family: 'Roboto', sans-serif;
	font-size: 0.95rem;
	color: var(--negro);
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--magenta);
	display: inline-block;
}

/* Entradas relacionadas en sidebar */
.sidebar-related-item {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
	text-decoration: none;
}

.sidebar-related-item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.sidebar-related-item__thumb {
	width: 68px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
	background: #f0f0f0;
}

.sidebar-related-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.sidebar-related-item:hover .sidebar-related-item__thumb img {
	transform: scale(1.08);
}

.sidebar-related-item__title {
	font-family: 'Archivo', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--negro);
	transition: color 0.2s ease;
}

.sidebar-related-item:hover .sidebar-related-item__title {
	color: var(--magenta);
}

.sidebar-related-item__date {
	font-size: 11px;
	color: #aaa;
	margin-top: 4px;
}

/* Tags en sidebar */
.sidebar-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.sidebar-tag {
	display: inline-block;
	background: #f5f5f5;
	color: #666;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 20px;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-tag:hover {
	background: var(--magenta);
	color: #fff;
}

/* ── Navegación post anterior / siguiente ───────────────── */
.single-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 56px;
	padding-top: 40px;
	border-top: 1px solid #f0f0f0;
}

.single-post-nav__item {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	padding: 20px 24px;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.single-post-nav__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 30px rgba(229, 0, 126, 0.1);
}

.single-post-nav__item--next {
	text-align: right;
}

.single-post-nav__label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--magenta);
	display: flex;
	align-items: center;
	gap: 4px;
}

.single-post-nav__item--next .single-post-nav__label {
	justify-content: flex-end;
}

.single-post-nav__title {
	font-family: 'Roboto', sans-serif;
	font-size: 0.95rem;
	color: var(--negro);
	line-height: 1.35;
}

/* ── CTA banner final ───────────────────────────────────── */
.single-cta {
	text-align: center;
	margin-top: 64px;
	padding: 48px 32px;
	background: var(--magenta);
	border-radius: 20px;
	position: relative;
	overflow: hidden;
}

.single-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 60%),
	            radial-gradient(circle at 80% 30%, rgba(255,255,255,0.06) 0%, transparent 50%);
	pointer-events: none;
}

.single-cta h3 {
	font-family: 'Roboto', sans-serif;
	font-size: clamp(1.3rem, 2.5vw, 1.8rem);
	color: #fff;
	margin-bottom: 10px;
}

.single-cta p {
	font-size: 15px;
	color: rgba(255,255,255,0.85);
	margin-bottom: 28px;
}

.single-cta .btn-single-cta {
	display: inline-block;
	background: #fff;
	color: var(--magenta);
	font-family: 'Archivo', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 14px 36px;
	border-radius: 50px;
	text-decoration: none;
	transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
}

.single-cta .btn-single-cta:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.15);
	color: var(--magenta);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
	.single-layout {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.single-sidebar {
		position: static;
	}

	.single-hero {
		padding: 90px 24px 50px;
	}
}

@media (max-width: 575px) {
	.single-post-nav {
		grid-template-columns: 1fr;
	}

	.single-hero__title {
		font-size: 1.6rem;
	}

	.single-cta {
		padding: 36px 20px;
	}
}
