/* TecnoArtesanos blog: header background + lead-capture modals */
:root {
	--ta-bg: #121414;
	--ta-surface: #1a1c1c;
	--ta-accent: #00f5d4;
	--ta-text: #e2e2e2;
	--ta-muted: #9aa3a1;
}

/* ---------- Header ---------- */
#page_header.page-subheader {
	background: var(--ta-bg) url(../img/blog-header.webp) center / cover no-repeat !important;
}
#page_header.page-subheader .bgback {
	background: linear-gradient(90deg, rgba(18, 20, 20, .92) 0%, rgba(18, 20, 20, .7) 45%, rgba(18, 20, 20, .35) 100%) !important;
	opacity: 1 !important;
}
#page_header .subheader-maintitle {
	color: #fff !important;
	letter-spacing: -.01em;
}
#page_header .subheader-maintitle::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	margin-top: 14px;
	background: var(--ta-accent);
	border-radius: 2px;
}

/* ---------- Shared button ---------- */
.ta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 24px;
	border-radius: 999px;
	font: 600 14px/1.2 "DM Sans", system-ui, sans-serif;
	letter-spacing: .04em;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: transform .15s ease, background .15s ease, color .15s ease;
	cursor: pointer;
}
.ta-btn:hover { transform: translateY(-1px); }
.ta-btn--primary { background: var(--ta-accent); color: var(--ta-bg) !important; border: 1px solid var(--ta-accent); }
.ta-btn--primary:hover { background: #5cffe8; }
.ta-btn--ghost { background: transparent; color: var(--ta-accent) !important; border: 1px solid rgba(0, 245, 212, .5); }
.ta-btn--ghost:hover { background: rgba(0, 245, 212, .1); }

/* ---------- Modal ---------- */
.ta-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(8, 10, 10, .72);
	backdrop-filter: blur(4px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility .25s ease;
}
.ta-modal.is-open { opacity: 1; visibility: visible; }
.ta-modal__card {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 36px 32px 28px;
	border: 1px solid rgba(0, 245, 212, .25);
	border-radius: 20px;
	background:
		radial-gradient(circle at 85% 0%, rgba(0, 245, 212, .16), transparent 60%),
		var(--ta-surface);
	color: var(--ta-text);
	font-family: "DM Sans", system-ui, sans-serif;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
	transform: translateY(16px) scale(.98);
	transition: transform .25s ease;
}
.ta-modal.is-open .ta-modal__card { transform: none; }
.ta-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--ta-muted);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.ta-modal__close:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.ta-modal__eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	padding: 5px 12px;
	border: 1px solid rgba(0, 245, 212, .45);
	border-radius: 999px;
	color: var(--ta-accent);
	font-size: 11px;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.ta-modal__title {
	margin: 0 0 10px;
	color: #fff;
	font: 700 28px/1.15 "DM Sans", system-ui, sans-serif;
}
.ta-modal__text { margin: 0 0 18px; color: var(--ta-muted); font-size: 15px; line-height: 1.55; }
.ta-modal__list { margin: 0 0 24px; padding: 0; list-style: none; }
.ta-modal__list li {
	position: relative;
	padding: 5px 0 5px 22px;
	color: var(--ta-text);
	font-size: 14px;
}
.ta-modal__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ta-accent);
}
.ta-modal__list a { color: var(--ta-text) !important; text-decoration: none; }
.ta-modal__list a:hover { color: var(--ta-accent) !important; }
.ta-modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ta-modal__actions .ta-btn { flex: 1 1 180px; }
.ta-modal__foot { margin: 18px 0 0; color: var(--ta-muted); font-size: 13px; }
.ta-modal__foot a { color: var(--ta-accent) !important; }

/* ---------- Floating button ---------- */
.ta-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9998;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border: 0;
	border-radius: 999px;
	background: var(--ta-accent);
	color: var(--ta-bg);
	font: 700 14px/1 "DM Sans", system-ui, sans-serif;
	box-shadow: 0 10px 30px rgba(0, 245, 212, .3);
	cursor: pointer;
	transform: translateY(120px);
	transition: transform .35s ease;
}
.ta-fab.is-visible { transform: none; }
.ta-fab__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-bg); animation: ta-pulse 1.8s infinite; }
@keyframes ta-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* Keep clear of Kallyas' back-to-top button */
#totop { bottom: 80px !important; }

/* ---------- End-of-post CTA ---------- */
.ta-post-cta {
	margin: 40px 0 10px;
	padding: 28px;
	border-radius: 18px;
	background:
		radial-gradient(circle at 100% 0%, rgba(0, 245, 212, .18), transparent 55%),
		var(--ta-bg);
	color: var(--ta-text);
	font-family: "DM Sans", system-ui, sans-serif;
}
.ta-post-cta h3 { margin: 0 0 8px; color: #fff; font: 700 22px/1.25 "DM Sans", system-ui, sans-serif; }
.ta-post-cta p { margin: 0 0 18px; color: var(--ta-muted); }
.ta-post-cta .ta-modal__actions .ta-btn { flex: 0 1 auto; }

@media (max-width: 600px) {
	.ta-modal__card { padding: 30px 22px 22px; }
	.ta-modal__title { font-size: 24px; }
	.ta-fab { right: 16px; bottom: 16px; padding: 11px 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.ta-modal, .ta-modal__card, .ta-fab, .ta-btn { transition: none; }
	.ta-fab__dot { animation: none; }
}

/* ---------- Top bar ---------- */
.ta-topbar {
	position: relative;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 48px;
	background: var(--ta-bg);
	border-bottom: 1px solid rgba(0, 245, 212, .25);
	font: 400 14px/1.4 "DM Sans", system-ui, sans-serif;
	text-align: center;
}
.ta-topbar[hidden] { display: none; }
.ta-topbar__link { color: var(--ta-text) !important; text-decoration: none !important; }
.ta-topbar__link strong { color: #fff; }
.ta-topbar__link span { color: var(--ta-accent); font-weight: 600; white-space: nowrap; }
.ta-topbar__link:hover span { text-decoration: underline; }
.ta-topbar__close {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: var(--ta-muted);
	font-size: 20px;
	cursor: pointer;
}
/* Kallyas absolute header sits below the bar */
.ta-has-topbar #header.site-header--absolute:not(.header--is-sticked) { top: 40px; }

/* ---------- Archive / home banner ---------- */
.ta-archive-banner-wrap { padding: 24px 15px 0; }
.ta-archive-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 18px 24px;
	border: 1px solid rgba(0, 245, 212, .3);
	border-radius: 16px;
	background: radial-gradient(circle at 100% 50%, rgba(0, 245, 212, .18), transparent 50%), var(--ta-bg);
	color: var(--ta-text) !important;
	font: 400 16px/1.45 "DM Sans", system-ui, sans-serif;
	text-decoration: none !important;
}
.ta-archive-banner strong { color: #fff; }
.ta-archive-banner .ta-btn { flex-shrink: 0; }

/* ---------- Inline ad in posts ---------- */
.ta-inline-ad {
	display: block;
	margin: 32px 0;
	padding: 22px 24px;
	border-left: 4px solid var(--ta-accent);
	border-radius: 12px;
	background: var(--ta-bg);
	font-family: "DM Sans", system-ui, sans-serif;
	text-decoration: none !important;
}
.ta-inline-ad span { display: block; }
.ta-inline-ad__tag { margin-bottom: 6px; color: var(--ta-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.ta-inline-ad__title { margin-bottom: 6px; color: #fff; font-size: 20px; font-weight: 700; }
.ta-inline-ad__text { color: var(--ta-accent); font-size: 15px; }
.ta-inline-ad:hover .ta-inline-ad__text { text-decoration: underline; }

/* ---------- Sidebar ad ---------- */
.ta-side-ad {
	overflow: hidden;
	margin-bottom: 30px;
	padding: 0 !important;
	border-radius: 16px;
	background: var(--ta-bg) !important;
	font-family: "DM Sans", system-ui, sans-serif;
}
.ta-side-ad img { display: block; width: 100%; height: 110px; object-fit: cover; }
.ta-side-ad__body { padding: 18px 16px; }
.ta-side-ad .ta-btn { padding: 12px 10px; }
.ta-side-ad__title { margin: 0 0 8px !important; color: #fff !important; font: 700 18px/1.25 "DM Sans", system-ui, sans-serif !important; }
.ta-side-ad p { margin: 0 0 16px; color: var(--ta-muted); font-size: 14px; }
.ta-side-ad .ta-btn { width: 100%; }
.ta-side-ad__fb { display: block; margin-top: 12px; color: var(--ta-accent) !important; font-size: 14px; text-align: center; }

.ta-post-cta__social { margin: 16px 0 0 !important; font-size: 14px; }
.ta-post-cta__social a { color: var(--ta-accent) !important; }

@media (max-width: 700px) {
	.ta-archive-banner { flex-direction: column; align-items: flex-start; }
	.ta-topbar { padding: 8px 40px 8px 12px; font-size: 13px; text-align: left; }
}

/* ---------- Branded footer ---------- */
.ta-footer {
	background: radial-gradient(circle at 10% 0%, rgba(0, 245, 212, .08), transparent 40%), var(--ta-bg);
	border-top: 1px solid rgba(0, 245, 212, .2);
	color: var(--ta-muted);
	font: 400 15px/1.6 "DM Sans", system-ui, sans-serif;
}
.ta-footer__inner {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 60px 16px 40px;
}
.ta-footer__brand img { display: block; width: 106px; height: auto; margin-bottom: 18px; }
.ta-footer__brand p { max-width: 360px; margin: 0 0 20px; }
.ta-footer h4 {
	margin: 0 0 16px;
	color: #fff;
	font: 700 13px/1.2 "DM Sans", system-ui, sans-serif;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.ta-footer ul { margin: 0; padding: 0; list-style: none; }
.ta-footer li { margin: 0 0 10px; }
.ta-footer__col a { color: var(--ta-text) !important; text-decoration: none; }
.ta-footer__col a:hover { color: var(--ta-accent) !important; }
.ta-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 20px 16px 90px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	font-size: 13px;
}
.ta-footer__bottom a { color: var(--ta-accent) !important; }
@media (max-width: 860px) {
	.ta-footer__inner { grid-template-columns: 1fr 1fr; }
	.ta-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.ta-footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* Sticky header: dark bar so the white logo stays visible */
#header.header--is-sticked {
	background: rgba(18, 20, 20, .94) !important;
	backdrop-filter: blur(6px);
	border-bottom: 1px solid rgba(0, 245, 212, .15);
}

/* Posts that use multi-column text: keep ad blocks whole */
.ta-inline-ad, .ta-post-cta { break-inside: avoid; -webkit-column-break-inside: avoid; }
.ta-post-cta { column-span: all; -webkit-column-span: all; }
