/* ==========================================================================
   Single Post — Beatclap
   Misma estructura que Klusto/Rayoweb, paleta violeta Beatclap.
   ========================================================================== */

/* ==========================================================================
   Single Post — Beatclap
   Estilo: tech moderno, IA-friendly. Paleta naranja/amarillo corporativa.
   Carga solo en single posts (ver functions.php).
   ========================================================================== */

:root {
	--bc-primary: #a068fc;
	--bc-primary-2: #e6a9fd;
	--bc-primary-dark: #5926b6;
	--bc-primary-soft: rgba(160, 104, 252, 0.14);
	--bc-primary-grad: linear-gradient(135deg, #a068fc 0%, #e6a9fd 100%);
	--bc-text: #f5f5f7;
	--bc-text-muted: #a1a1a6;
	--bc-bg: #000000;
	--bc-bg-alt: #1d1d1f;
	--bc-bg-dark: #050308;
	--bc-border: rgba(255, 255, 255, 0.12);
	--bc-radius: 12px;
	--bc-radius-lg: 18px;
	--bc-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
	--bc-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
	--bc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bc-single,
.bc-single * {
	box-sizing: border-box;
}

/* Neutralizar el a:visited morado global del theme dentro de la plantilla.
   El theme fuerza color #7141b1 en enlaces visitados; aquí lo reseteamos
   para que nuestros estilos de color manden. */
.bc-single a:visited {
	color: inherit;
}

.bc-single {
	font-family: var(--font-body), 'Inter', sans-serif;
	color: var(--bc-text);
	background: var(--bc-bg);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

/* Reading progress bar
   -------------------------------------------------------------------------- */
.bc-reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: transparent;
	z-index: 9999;
	pointer-events: none;
}

.bc-reading-progress__bar {
	height: 100%;
	width: 0;
	background: var(--bc-primary-grad);
	box-shadow: 0 0 10px rgba(160, 104, 252, 0.5);
	transition: width 0.1s linear;
}

/* HERO
   -------------------------------------------------------------------------- */
.bc-single__hero {
	position: relative;
	padding: 120px 0 80px;
	background-color: var(--bc-bg-dark);
	background-size: cover;
	background-position: center;
	color: #fff;
	overflow: hidden;
}

.bc-single__hero:not(.has-thumb) {
	background-image:
		radial-gradient(circle at 15% 25%, rgba(160, 104, 252, 0.25) 0%, transparent 50%),
		radial-gradient(circle at 85% 75%, rgba(230, 169, 253, 0.18) 0%, transparent 50%),
		linear-gradient(135deg, #050308 0%, #12061f 100%);
}

.bc-single__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(5, 3, 8, 0.78) 0%, rgba(5, 3, 8, 0.94) 100%);
	z-index: 1;
}

.bc-single__hero .container {
	position: relative;
	z-index: 2;
}

.bc-single__hero-inner {
	max-width: 820px;
}

.bc-single__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.bc-chip {
	display: inline-block;
	padding: 5px 14px;
	background: var(--bc-primary-grad);
	color: #fff;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 999px;
	transition: transform var(--bc-transition);
}

.bc-chip:hover {
	transform: translateY(-2px);
	color: #fff;
}

.bc-single__title {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: clamp(30px, 4.5vw, 52px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 28px;
}

.bc-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: 14.5px;
	color: rgba(255, 255, 255, 0.85);
}

.bc-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.bc-meta-item svg {
	width: 16px;
	height: 16px;
	color: var(--bc-primary-2);
}

.bc-meta-avatar {
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.bc-meta-author {
	font-weight: 700;
	color: #fff;
}

.bc-meta-sep {
	color: rgba(255, 255, 255, 0.4);
}

/* BODY layout
   -------------------------------------------------------------------------- */
.bc-single__body {
	padding: 70px 0;
	background: var(--bc-bg);
}

.bc-single__body .row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	margin: 0 -20px;
}

.bc-single__body [class*="col-"] {
	padding: 0 20px;
	width: 100%;
}

@media (min-width: 992px) {
	.bc-single__body .col-lg-8 {
		flex: 0 0 66.666%;
		max-width: 66.666%;
	}
	.bc-single__body .col-lg-4 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}
}

/* Contenido del post
   -------------------------------------------------------------------------- */
.bc-single__content {
	font-size: 18px;
	line-height: 1.8;
	color: var(--bc-text);
}

.bc-single__content > * {
	margin-bottom: 1.4em;
}

.bc-single__content h2 {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.25;
	margin: 1.6em 0 0.6em;
	color: var(--bc-text);
	position: relative;
	padding-left: 18px;
}

.bc-single__content h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	bottom: 8px;
	width: 4px;
	border-radius: 4px;
	background: var(--bc-primary-grad);
}

.bc-single__content h3 {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 23px;
	font-weight: 700;
	margin: 1.4em 0 0.5em;
	color: var(--bc-text);
}

.bc-single__content h4 {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 19px;
	font-weight: 700;
	margin: 1.2em 0 0.4em;
}

.bc-single__content a {
	color: var(--bc-primary-2);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color var(--bc-transition);
}

.bc-single__content a:hover {
	color: var(--bc-primary);
}

.bc-single__content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--bc-radius);
}

.bc-single__content blockquote {
	margin: 1.8em 0;
	padding: 24px 28px;
	background: var(--bc-bg-alt);
	border-left: 4px solid var(--bc-primary);
	border-radius: 0 var(--bc-radius) var(--bc-radius) 0;
	font-size: 19px;
	font-style: italic;
	color: var(--bc-text);
}

.bc-single__content blockquote p:last-child {
	margin-bottom: 0;
}

.bc-single__content pre {
	background: var(--bc-bg-dark);
	color: #e8e4ef;
	padding: 22px 24px;
	border-radius: var(--bc-radius);
	overflow-x: auto;
	font-size: 14.5px;
	line-height: 1.6;
}

.bc-single__content code {
	font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
	font-size: 0.9em;
	background: rgba(160, 104, 252, 0.18);
	color: var(--bc-primary-2);
	padding: 2px 7px;
	border-radius: 5px;
}

.bc-single__content pre code {
	background: none;
	color: inherit;
	padding: 0;
}

.bc-single__content ul,
.bc-single__content ol {
	padding-left: 1.4em;
}

.bc-single__content li {
	margin-bottom: 0.5em;
}

/* Tags + Share
   -------------------------------------------------------------------------- */
.bc-single__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 40px 0 24px;
	padding-top: 30px;
	border-top: 1px solid var(--bc-border);
}

.bc-single__tags-label,
.bc-single__share-label {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-primary);
	margin-right: 6px;
}

.bc-tag {
	display: inline-block;
	padding: 6px 14px;
	background: var(--bc-bg-alt);
	border: 1px solid var(--bc-border);
	border-radius: 999px;
	font-size: 13.5px;
	color: var(--bc-text-muted);
	text-decoration: none;
	transition: all var(--bc-transition);
}

.bc-tag:hover {
	border-color: var(--bc-primary);
	color: var(--bc-primary);
	background: var(--bc-primary-soft);
}

.bc-single__share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 70px;
}

.bc-single__share-links {
	display: flex;
	gap: 10px;
}

.bc-share {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--bc-bg-alt);
	border: 1px solid var(--bc-border);
	color: var(--bc-text);
	transition: all var(--bc-transition);
}

.bc-share svg {
	width: 18px;
	height: 18px;
}

.bc-share:hover {
	transform: translateY(-3px);
	color: #fff;
	border-color: transparent;
}

.bc-share--x:hover {
	background: #000;
}

.bc-share--li:hover {
	background: #0a66c2;
}

.bc-share--wa:hover {
	background: #25d366;
}

/* AUTHOR BOX
   -------------------------------------------------------------------------- */
.bc-author {
	display: flex;
	gap: 24px;
	padding: 36px;
	background: var(--bc-bg-dark);
	border-radius: var(--bc-radius-lg);
	color: #fff;
	margin-bottom: 50px;
	position: relative;
	overflow: hidden;
}

.bc-author::before {
	content: "";
	position: absolute;
	top: -40%;
	right: -10%;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(160, 104, 252, 0.18) 0%, transparent 70%);
	pointer-events: none;
}

.bc-author__avatar {
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.bc-author__img {
	border-radius: 50%;
	border: 3px solid var(--bc-primary);
	width: 96px;
	height: 96px;
	object-fit: cover;
}

.bc-author__info {
	position: relative;
	z-index: 1;
}

.bc-author__eyebrow {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-primary-2);
}

.bc-author__name {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	margin: 6px 0 10px;
}

.bc-author__bio {
	color: rgba(255, 255, 255, 0.8);
	font-size: 15px;
	margin-bottom: 14px;
}

.bc-single .bc-author__link,
.bc-author__link,
.bc-author__link:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--bc-primary-2) !important;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	transition: gap var(--bc-transition);
}

.bc-single .bc-author__link:hover,
.bc-author__link:hover {
	gap: 12px;
	color: var(--bc-primary-2) !important;
}

/* POST NAV
   -------------------------------------------------------------------------- */
.bc-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 50px;
}

.bc-postnav__item {
	padding: 22px 26px;
	background: var(--bc-bg-alt);
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius);
	text-decoration: none;
	transition: all var(--bc-transition);
}

.bc-postnav__item--next {
	text-align: right;
}

.bc-postnav__item:hover {
	border-color: var(--bc-primary);
	transform: translateY(-3px);
	box-shadow: var(--bc-shadow-md);
}

.bc-postnav__dir {
	display: block;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-primary);
	margin-bottom: 8px;
}

.bc-postnav__title {
	display: block;
	font-weight: 700;
	color: var(--bc-text);
	font-size: 15px;
	line-height: 1.35;
}

/* SIDEBAR
   -------------------------------------------------------------------------- */
.bc-sidebar {
	position: relative;
}

/* El bloque del formulario + CTA acompaña el scroll; "Últimas entradas"
   queda fuera y se desplaza con normalidad. */
.bc-sidebar__sticky {
	position: sticky;
	top: 100px;
}

.bc-widget {
	background: var(--bc-bg-alt);
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius-lg);
	padding: 28px;
	margin-bottom: 28px;
}

.bc-widget__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 19px;
	font-weight: 700;
	color: var(--bc-text);
	margin: 0 0 20px;
}

.bc-widget__bar {
	display: inline-block;
	width: 24px;
	height: 4px;
	border-radius: 4px;
	background: var(--bc-primary-grad);
}

.bc-widget__intro {
	font-size: 14.5px;
	color: var(--bc-text-muted);
	margin-bottom: 18px;
}

.bc-widget--contact {
	padding: 22px;
}

.bc-widget--contact .bc-widget__title {
	margin-bottom: 12px;
}

.bc-widget--contact .bc-widget__intro {
	margin-bottom: 14px;
	font-size: 14px;
}

/* Recent posts */
.bc-recent {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bc-recent__item {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--bc-border);
}

.bc-recent__item:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.bc-recent__link {
	display: flex;
	gap: 14px;
	text-decoration: none;
	align-items: center;
}

.bc-recent__thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 10px;
	overflow: hidden;
}

.bc-recent__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--bc-transition);
}

.bc-recent__link:hover .bc-recent__img {
	transform: scale(1.08);
}

.bc-recent__t {
	display: block;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--bc-text);
	line-height: 1.35;
	transition: color var(--bc-transition);
}

.bc-recent__link:hover .bc-recent__t {
	color: var(--bc-primary);
}

.bc-recent__date {
	display: block;
	font-size: 12.5px;
	color: var(--bc-text-muted);
	margin-top: 4px;
}

/* Contact form (nativo y CF7) — versión compacta para sidebar */
.bc-cform__field,
.bc-widget--contact .wpcf7-form p {
	margin-bottom: 8px;
}

.bc-cform__field input,
.bc-cform__field textarea,
.bc-widget--contact .wpcf7 input[type="text"],
.bc-widget--contact .wpcf7 input[type="email"],
.bc-widget--contact .wpcf7 input[type="tel"],
.bc-widget--contact .wpcf7 textarea {
	width: 100%;
	padding: 9px 13px;
	border: 1px solid var(--bc-border);
	border-radius: 8px;
	background: var(--bc-bg-alt);
	font-family: inherit;
	font-size: 14px;
	color: var(--bc-text);
	transition: all var(--bc-transition);
	resize: vertical;
	box-sizing: border-box;
}

.bc-widget--contact .wpcf7 textarea {
	min-height: 90px;
}

.bc-cform__field input:focus,
.bc-cform__field textarea:focus,
.bc-widget--contact .wpcf7 input:focus,
.bc-widget--contact .wpcf7 textarea:focus {
	outline: none;
	border-color: var(--bc-primary);
	background: #111111;
	box-shadow: 0 0 0 3px var(--bc-primary-soft);
}

.bc-cform__field input::placeholder,
.bc-cform__field textarea::placeholder,
.bc-widget--contact .wpcf7 input::placeholder,
.bc-widget--contact .wpcf7 textarea::placeholder {
	color: #999;
}

/* Botón submit — colores brand, compacto */
.bc-cform__submit,
.bc-widget--contact .wpcf7 input[type="submit"],
.bc-widget--contact .wpcf7 button[type="submit"] {
	width: 100%;
	padding: 12px 18px;
	background: var(--bc-primary-grad);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-weight: 700;
	font-size: 13.5px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: all var(--bc-transition);
}

.bc-cform__submit:hover,
.bc-widget--contact .wpcf7 input[type="submit"]:hover,
.bc-widget--contact .wpcf7 button[type="submit"]:hover {
	background: var(--bc-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(160, 104, 252, 0.35);
}

/* Mensajes de validación / respuesta de CF7 */
.bc-widget--contact .wpcf7 .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
}

.bc-widget--contact .wpcf7 .wpcf7-not-valid-tip {
	font-size: 12px;
	color: var(--bc-danger, #e85f5f);
	margin-top: 4px;
}

/* Widget CTA */
.bc-widget--cta {
	background: var(--bc-primary-grad);
	border: none;
	color: #fff;
}

.bc-cta-box__title {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 20px;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.2;
}

.bc-cta-box__text {
	color: rgba(255, 255, 255, 0.92);
	font-size: 14.5px;
	margin-bottom: 18px;
}

.bc-single .bc-cta-box__btn,
.bc-widget--cta .bc-cta-box__btn,
a.bc-cta-box__btn {
	display: inline-block;
	padding: 12px 24px;
	background: #ffffff;
	color: var(--bc-primary-dark) !important;
	border-radius: 8px;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: none;
	transition: all var(--bc-transition);
}

.bc-single .bc-cta-box__btn:hover,
.bc-widget--cta .bc-cta-box__btn:hover,
a.bc-cta-box__btn:hover {
	background: #111111;
	color: #ffffff !important;
	transform: translateY(-2px);
}

/* RELATED POSTS
   -------------------------------------------------------------------------- */
.bc-related {
	padding: 70px 0;
	background: var(--bc-bg-alt);
}

.bc-related__head {
	text-align: center;
	margin-bottom: 44px;
}

.bc-related__eyebrow {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--bc-primary);
}

.bc-related__title {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 800;
	color: var(--bc-text);
	margin: 8px 0 0;
}

.bc-related .row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.bc-related [class*="col-"] {
	padding: 0 15px;
	width: 100%;
	margin-bottom: 30px;
	display: flex;
}

@media (min-width: 768px) {
	.bc-related .col-md-4 {
		flex: 0 0 33.333%;
		max-width: 33.333%;
	}
}

.bc-rcard {
	width: 100%;
	background: var(--bc-bg-alt);
	border: 1px solid var(--bc-border);
	border-radius: var(--bc-radius-lg);
	overflow: hidden;
	transition: all var(--bc-transition);
}

.bc-rcard:hover {
	transform: translateY(-6px);
	box-shadow: var(--bc-shadow-md);
	border-color: var(--bc-primary);
}

.bc-rcard__link {
	text-decoration: none;
	display: block;
	height: 100%;
}

.bc-rcard__thumb {
	height: 190px;
	overflow: hidden;
	background: var(--bc-bg-alt);
}

.bc-rcard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s var(--bc-transition);
}

.bc-rcard:hover .bc-rcard__img {
	transform: scale(1.06);
}

.bc-rcard__noimg {
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 30%, rgba(160, 104, 252, 0.3) 0%, transparent 60%),
		linear-gradient(135deg, #050308 0%, #12061f 100%);
}

.bc-rcard__content {
	padding: 22px 24px 26px;
}

.bc-rcard__cat {
	display: inline-block;
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 11.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bc-primary);
	margin-bottom: 10px;
}

.bc-rcard__title {
	font-family: var(--font-display), 'Gotham Pro', sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bc-text);
	margin: 0 0 12px;
	transition: color var(--bc-transition);
}

.bc-rcard:hover .bc-rcard__title {
	color: var(--bc-primary);
}

.bc-rcard__meta {
	font-size: 13px;
	color: var(--bc-text-muted);
}

/* Animaciones de entrada
   -------------------------------------------------------------------------- */
.bc-single [data-bc-anim] {
	opacity: 0;
	transform: translateY(20px);
	animation: bcFadeUp 0.7s ease forwards;
}

.bc-single__cats[data-bc-anim] { animation-delay: 0.1s; }
.bc-single__title[data-bc-anim] { animation-delay: 0.2s; }
.bc-single__meta[data-bc-anim] { animation-delay: 0.35s; }

@keyframes bcFadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.bc-single__body {
		padding: 50px 0;
	}
	.bc-sidebar {
		margin-top: 40px;
	}
	.bc-sidebar__sticky {
		position: static;
		top: auto;
	}
	.bc-widget--cta {
		position: static;
	}
}

@media (max-width: 575px) {
	.bc-single__hero {
		padding: 90px 0 56px;
	}
	.bc-author {
		flex-direction: column;
		text-align: center;
		align-items: center;
		padding: 28px 22px;
	}
	.bc-postnav {
		grid-template-columns: 1fr;
	}
	.bc-postnav__item--next {
		text-align: left;
	}
	.bc-single__content {
		font-size: 16.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bc-single [data-bc-anim] {
		opacity: 1;
		transform: none;
		animation: none;
	}
	.bc-reading-progress__bar {
		transition: none;
	}
}
