/*
Theme Name: GowLabs
Theme URI: https://gowlabs.com
Author: GowLabs
Description: Tema corporativo para GowLabs — laboratorio de soluciones digitales.
Version: 1.2.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: gowlabs
*/

@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/dm-sans-normal-400-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/dm-sans-normal-400-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/dm-sans-italic-400-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "DM Sans";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/dm-sans-italic-400-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/jetbrains-mono-normal-400-700-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: "JetBrains Mono";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/jetbrains-mono-normal-400-700-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--color-bg: #070b14;
	--color-surface: #0f1629;
	--color-surface-alt: #161f35;
	--color-border: rgba(255, 255, 255, 0.08);
	--color-text: #e8edf5;
	--color-text-muted: #8b95a8;
	--color-accent: #00e5a0;
	--color-accent-dim: rgba(0, 229, 160, 0.12);
	--color-accent-hover: #00c98d;
	--color-indigo: #6366f1;
	--font-sans: "DM Sans", system-ui, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, monospace;
	--radius: 12px;
	--radius-lg: 20px;
	--shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
	--header-h: 72px;
	--max-w: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--color-text);
	background: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container {
	width: min(100% - 2.5rem, var(--max-w));
	margin-inline: auto;
}

/* ── Header ── */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	height: var(--header-h);
	background: rgba(7, 11, 20, 0.85);
	backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--color-border);
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--color-text);
	letter-spacing: -0.02em;
}

.site-logo:hover { color: var(--color-text); }

.site-logo__mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, var(--color-accent), var(--color-indigo));
	border-radius: 10px;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-bg);
}

.primary-nav ul {
	display: flex;
	gap: 2rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.primary-nav a {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	font-weight: 500;
}

.primary-nav a:hover { color: var(--color-text); }

.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	color: var(--color-text);
	padding: 0.5rem 0.75rem;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
}

/* ── Buttons ── */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.875rem 1.75rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.9375rem;
	border: none;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
	background: var(--color-accent);
	color: var(--color-bg);
}

.btn--primary:hover {
	background: var(--color-accent-hover);
	color: var(--color-bg);
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 229, 160, 0.3);
}

.btn--ghost {
	background: transparent;
	color: var(--color-text);
	border: 1px solid var(--color-border);
}

.btn--ghost:hover {
	border-color: var(--color-accent);
	color: var(--color-accent);
}

/* ── Hero ── */
.hero {
	padding: calc(var(--header-h) + 5rem) 0 6rem;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 229, 160, 0.15), transparent),
		radial-gradient(ellipse 50% 40% at 90% 60%, rgba(99, 102, 241, 0.1), transparent);
	pointer-events: none;
}

.hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
	position: relative;
}

.hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 1rem;
	background: var(--color-accent-dim);
	border: 1px solid rgba(0, 229, 160, 0.25);
	border-radius: 999px;
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--color-accent);
	margin-bottom: 1.5rem;
}

.hero__badge::before {
	content: "";
	width: 6px;
	height: 6px;
	background: var(--color-accent);
	border-radius: 50%;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.hero h1 {
	font-size: clamp(2.5rem, 5vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 1.25rem;
}

.hero h1 span {
	background: linear-gradient(135deg, var(--color-accent), var(--color-indigo));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero__lead {
	font-size: 1.1875rem;
	color: var(--color-text-muted);
	max-width: 32rem;
	margin: 0 0 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.hero__visual {
	position: relative;
}

.hero__card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	box-shadow: var(--shadow);
}

.hero__card-header {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1.5rem;
}

.hero__card-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--color-border);
}

.hero__card-dot:nth-child(1) { background: #ff5f57; }
.hero__card-dot:nth-child(2) { background: #febc2e; }
.hero__card-dot:nth-child(3) { background: #28c840; }

.hero__code {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.8;
	color: var(--color-text-muted);
}

.hero__code .kw { color: var(--color-indigo); }
.hero__code .fn { color: var(--color-accent); }
.hero__code .str { color: #fbbf24; }
.hero__code .cm { color: #4b5563; }

/* ── Sections ── */
.section {
	padding: 5rem 0;
}

.section--alt {
	background: var(--color-surface);
	border-block: 1px solid var(--color-border);
}

.section__label {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--color-accent);
	margin-bottom: 0.75rem;
}

.section__title {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
}

.section__desc {
	color: var(--color-text-muted);
	max-width: 36rem;
	margin: 0 0 3rem;
}

/* ── Services grid ── */
.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.5rem;
}

.service-card {
	background: var(--color-surface-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
	border-color: rgba(0, 229, 160, 0.3);
	transform: translateY(-4px);
}

.service-card__icon {
	width: 48px;
	height: 48px;
	display: grid;
	place-items: center;
	background: var(--color-accent-dim);
	border-radius: var(--radius);
	font-size: 1.5rem;
	margin-bottom: 1.25rem;
}

.service-card h3 {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.service-card p {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	margin: 0;
}

/* ── About ── */
.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.stat {
	text-align: center;
	padding: 1.5rem;
	background: var(--color-surface-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.stat__num {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--color-accent);
	line-height: 1;
	margin-bottom: 0.25rem;
	font-family: var(--font-mono);
}

.stat__label {
	font-size: 0.8125rem;
	color: var(--color-text-muted);
}

/* ── Cookies policy ── */
.cookies-policy {
	max-width: 920px;
}

.cookies-policy__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.cookies-policy__card {
	background: var(--color-surface-alt);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 1.5rem;
}

.cookies-policy__card h3 {
	font-size: 1.0625rem;
	margin: 0 0 0.75rem;
}

.cookies-policy__card p,
.cookies-policy__note {
	color: var(--color-text-muted);
	font-size: 0.9375rem;
	margin: 0;
}

.cookies-policy__note {
	padding: 1.25rem 1.5rem;
	background: var(--color-accent-dim);
	border: 1px solid rgba(0, 229, 160, 0.2);
	border-radius: var(--radius);
}

/* ── Contact ── */
.contact-box {
	background: linear-gradient(135deg, var(--color-surface-alt), var(--color-surface));
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 3rem;
	text-align: center;
	max-width: 640px;
	margin-inline: auto;
}

.contact-box h2 {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
}

.contact-box p {
	color: var(--color-text-muted);
	margin: 0 0 2rem;
}

.contact-box .btn { font-size: 1rem; }

/* ── Blog / inner pages ── */
.page-header {
	padding: calc(var(--header-h) + 3rem) 0 2rem;
	border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin: 0;
	letter-spacing: -0.02em;
}

.content-area {
	padding: 3rem 0 5rem;
}

.content-area .entry-content {
	max-width: 720px;
}

.content-area .entry-content h2,
.content-area .entry-content h3 {
	margin-top: 2rem;
	letter-spacing: -0.01em;
}

.content-area .entry-content p {
	color: var(--color-text-muted);
}

.post-list { display: grid; gap: 2rem; }

.post-card {
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-lg);
	padding: 2rem;
	transition: border-color 0.2s;
}

.post-card:hover { border-color: rgba(0, 229, 160, 0.25); }

.post-card h2 {
	margin: 0 0 0.5rem;
	font-size: 1.375rem;
}

.post-card h2 a { color: var(--color-text); }
.post-card h2 a:hover { color: var(--color-accent); }

.post-card time {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--color-text-muted);
}

.post-card p { color: var(--color-text-muted); margin: 0.75rem 0 0; }

/* ── Footer ── */
.site-footer {
	border-top: 1px solid var(--color-border);
	padding: 2.5rem 0;
}

.site-footer .container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-footer p {
	margin: 0;
	font-size: 0.875rem;
	color: var(--color-text-muted);
}

.footer-links {
	display: flex;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	color: var(--color-text-muted);
	font-size: 0.875rem;
}

.footer-links a:hover { color: var(--color-text); }

/* ── Responsive ── */
@media (max-width: 900px) {
	.hero__grid,
	.about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

	.hero__visual { order: -1; }

	.about-stats,
	.cookies-policy__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
	.nav-toggle { display: block; }

	.primary-nav {
		position: fixed;
		top: var(--header-h);
		left: 0;
		right: 0;
		background: var(--color-surface);
		border-bottom: 1px solid var(--color-border);
		padding: 1.5rem;
		transform: translateY(-120%);
		opacity: 0;
		transition: transform 0.3s, opacity 0.3s;
		pointer-events: none;
	}

	.primary-nav.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.primary-nav ul {
		flex-direction: column;
		gap: 1rem;
	}

	.hero { padding-bottom: 4rem; }

	.hero__actions { flex-direction: column; }

	.hero__actions .btn { justify-content: center; }
}

/* ── Error 404 ── */
.error-page {
	min-height: calc(100vh - var(--header-h));
	padding: calc(var(--header-h) + 4rem) 0 6rem;
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
}

.error-page::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 60% 50% at 50% 0%, rgba(0, 229, 160, 0.08), transparent),
		radial-gradient(ellipse 40% 30% at 80% 80%, rgba(99, 102, 241, 0.06), transparent);
	pointer-events: none;
}

.error-page__inner {
	position: relative;
	text-align: center;
	max-width: 36rem;
	margin-inline: auto;
}

.error-page__code {
	font-family: var(--font-mono);
	font-size: clamp(4rem, 12vw, 7rem);
	font-weight: 700;
	line-height: 1;
	margin: 0 0 1rem;
	background: linear-gradient(135deg, var(--color-accent), var(--color-indigo));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	opacity: 0.9;
}

.error-page__title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	margin: 0 0 1rem;
	color: var(--color-text);
}

.error-page__lead {
	color: var(--color-text-muted);
	font-size: 1.0625rem;
	line-height: 1.7;
	margin: 0 0 1.75rem;
}

.error-page__snippet {
	text-align: left;
	margin: 0 auto 1rem;
	padding: 1.25rem 1.5rem;
	max-width: 28rem;
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	line-height: 1.6;
	overflow-x: auto;
}

.error-page__snippet .cm { color: #6b7280; }
.error-page__snippet .kw { color: var(--color-indigo); }
.error-page__snippet .fn { color: #60a5fa; }
.error-page__snippet .str { color: var(--color-accent); }

.error-page__hint {
	font-family: var(--font-mono);
	font-size: 0.8125rem;
	color: var(--color-text-muted);
	margin: 0 0 2rem;
	opacity: 0.85;
}

.error-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
