/* ==========================================================================
   GUAIBO THEME — main.css
   Dark-first AI-native corporate theme
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
	color-scheme: dark light;

	--bg:         #0a0a0f;
	--bg-2:       #11111a;
	--bg-3:       #1a1a26;
	--surface:    rgba(26, 26, 38, 0.6);
	--border:     rgba(255, 255, 255, 0.08);
	--border-2:   rgba(255, 255, 255, 0.14);
	--border-hot: rgba(0, 217, 255, 0.45);

	--fg:         #f5f6fa;
	--fg-2:       #a8adba;
	--fg-3:       #6b7080;

	--cyan:       #00d9ff;
	--cyan-dim:   #00a8cc;
	--violet:     #a855f7;
	--violet-dim: #7e22ce;

	--gradient-aurora:  linear-gradient(135deg, #00d9ff 0%, #a855f7 100%);
	--gradient-text:    linear-gradient(135deg, #ffffff 0%, #00d9ff 60%, #a855f7 100%);
	--gradient-mesh:
		radial-gradient(at 15% 15%, rgba(0, 217, 255, 0.18) 0, transparent 55%),
		radial-gradient(at 85% 10%, rgba(168, 85, 247, 0.15) 0, transparent 55%),
		radial-gradient(at 50% 100%, rgba(0, 217, 255, 0.12) 0, transparent 55%);

	--glow-cyan:   0 0 32px rgba(0, 217, 255, 0.5);
	--glow-violet: 0 0 32px rgba(168, 85, 247, 0.5);
	--glow-aurora: 0 0 24px rgba(0, 217, 255, 0.4), 0 0 48px rgba(168, 85, 247, 0.25);

	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.6);

	--font-body: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;

	--radius-sm: 0.5rem;
	--radius:    0.75rem;
	--radius-lg: 1rem;
	--radius-xl: 1.5rem;
	--radius-full: 9999px;

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-out: cubic-bezier(0, 0, 0.2, 1);

	--container: 1200px;
	--container-wide: 1440px;
	--container-narrow: 780px;
}

[data-theme="light"] {
	--bg:         #fafafa;
	--bg-2:       #ffffff;
	--bg-3:       #f4f4f5;
	--surface:    rgba(255, 255, 255, 0.7);
	--border:     rgba(0, 0, 0, 0.08);
	--border-2:   rgba(0, 0, 0, 0.14);

	--fg:         #0a0a0f;
	--fg-2:       #52525b;
	--fg-3:       #a1a1aa;

	--gradient-text:    linear-gradient(135deg, #0a0a0f 0%, #1e3de0 60%, #7e22ce 100%);
	--gradient-mesh:
		radial-gradient(at 15% 15%, rgba(0, 217, 255, 0.12) 0, transparent 55%),
		radial-gradient(at 85% 10%, rgba(168, 85, 247, 0.1) 0, transparent 55%);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg-2);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background: var(--gradient-mesh);
	pointer-events: none;
	z-index: 0;
}

body > * { position: relative; z-index: 1; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: #5ae6ff; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-body);
	color: var(--fg);
	margin: 0 0 1rem;
	line-height: 1.1;
	letter-spacing: -0.03em;
	font-weight: 700;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 3.5vw + 0.8rem, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 2.2vw + 0.5rem, 2.625rem); }
h3 { font-size: clamp(1.125rem, 1vw + 0.5rem, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--cyan); color: var(--bg); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: var(--radius-sm); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-dim); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}

/* ---------- LAYOUT ---------- */
.g-container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.5rem; }
.g-container--narrow { max-width: var(--container-narrow); }
.g-container--wide { max-width: var(--container-wide); }

.g-section { padding-block: clamp(3rem, 5vw, 5.5rem); }
.g-section--alt {
	background: linear-gradient(180deg, transparent 0%, var(--bg-2) 30%, var(--bg-2) 70%, transparent 100%);
}
.g-section__header { max-width: 680px; margin-bottom: 3rem; text-align: center; margin-inline: auto; }
.g-section__header .g-eyebrow { justify-content: center; }

.g-grid { display: grid; gap: 1.5rem; }
.g-grid--2 { grid-template-columns: repeat(2, 1fr); }
.g-grid--3 { grid-template-columns: repeat(3, 1fr); }
.g-grid--4 { grid-template-columns: repeat(4, 1fr); }
.g-grid--gap-lg { gap: 4rem; }

@media (max-width: 960px) {
	.g-grid--3, .g-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.g-grid--2, .g-grid--3, .g-grid--4 { grid-template-columns: 1fr; }
}

/* ---------- HELPERS ---------- */
.g-skip-link {
	position: absolute; top: -100px; left: 1rem;
	background: var(--cyan); color: var(--bg); padding: .5rem 1rem;
	border-radius: var(--radius-sm); font-weight: 600;
	transition: top .15s var(--ease);
}
.g-skip-link:focus { top: 1rem; z-index: 9999; }

.g-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cyan);
	margin-bottom: 1rem;
}
.g-eyebrow__dot, .g-eyebrow::before {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--cyan);
	box-shadow: var(--glow-cyan);
	animation: pulse 2.4s ease-in-out infinite;
}
.g-eyebrow::before { content: ''; display: none; }
.g-section__header .g-eyebrow::before { display: inline-block; }
.g-section__header .g-eyebrow__dot { display: none; }

@keyframes pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: .6; transform: scale(0.85); }
}

.g-text-gradient {
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.g-lead {
	font-size: clamp(1.125rem, 1vw + 0.8rem, 1.25rem);
	color: var(--fg-2);
	line-height: 1.6;
	max-width: 60ch;
}

/* ---------- BUTTONS ---------- */
.g-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 0.875rem 1.75rem;
	font-family: var(--font-body);
	font-size: .9375rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	border: 1.5px solid transparent;
	border-radius: var(--radius-full);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .2s var(--ease-out), box-shadow .3s var(--ease), background .3s var(--ease);
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.g-btn__icon { width: 1em; height: 1em; transition: transform .2s var(--ease-out); }
.g-btn:hover .g-btn__icon { transform: translateX(3px); }

.g-btn--primary {
	background: var(--gradient-aurora);
	color: #fff;
	box-shadow: var(--glow-aurora), var(--shadow-sm);
}
.g-btn--primary:hover {
	transform: translateY(-2px);
	color: #fff;
	box-shadow: 0 0 32px rgba(0, 217, 255, 0.6), 0 0 64px rgba(168, 85, 247, 0.35), var(--shadow-md);
}

.g-btn--ghost {
	background: transparent;
	color: var(--fg);
	border-color: var(--border-2);
}
.g-btn--ghost:hover {
	background: var(--bg-3);
	border-color: var(--cyan);
	color: var(--cyan);
	transform: translateY(-2px);
}

.g-btn--sm { padding: .5rem 1rem; font-size: .8125rem; }
.g-btn--lg { padding: 1.125rem 2.25rem; font-size: 1rem; }

/* ---------- HEADER ---------- */
.g-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(10, 10, 15, 0.72);
	backdrop-filter: blur(18px) saturate(180%);
	-webkit-backdrop-filter: blur(18px) saturate(180%);
	border-bottom: 1px solid var(--border);
}
[data-theme="light"] .g-header { background: rgba(255, 255, 255, 0.72); }

.g-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding-block: 0.875rem;
	min-height: 72px;
}
.g-header__brand { text-decoration: none; display: inline-flex; align-items: center; flex-shrink: 0; }

/* Constrain WordPress custom-logo para que no rompa el header */
.g-header__brand .custom-logo-link,
.g-header__brand .custom-logo-link img,
.g-header__brand img {
	display: inline-block;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.g-brand {
	display: inline-flex;
	align-items: center;
	gap: .625rem;
	color: var(--fg);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.02em;
}
.g-brand__mark { display: inline-flex; filter: drop-shadow(0 0 12px rgba(0, 217, 255, 0.4)); }

.g-nav { flex: 1; }
.g-nav__list,
.g-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 2.25rem;
}
.g-nav__list li { list-style: none; }
.g-nav__list > li > a,
.g-nav__item > a {
	position: relative;
	display: inline-block;
	padding: .5rem 0;
	font-size: .9375rem;
	font-weight: 500;
	color: var(--fg-2);
	text-decoration: none;
	transition: color .15s var(--ease);
}
.g-nav__list > li > a::after,
.g-nav__item > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--gradient-aurora);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .3s var(--ease);
	box-shadow: var(--glow-cyan);
}
.g-nav__list > li > a:hover,
.g-nav__list > li.current-menu-item > a,
.g-nav__list > li.current_page_item > a,
.g-nav__item > a:hover,
.g-nav__item > a[aria-current="page"] {
	color: var(--fg);
}
.g-nav__list > li > a:hover::after,
.g-nav__list > li.current-menu-item > a::after,
.g-nav__list > li.current_page_item > a::after,
.g-nav__item > a:hover::after,
.g-nav__item > a[aria-current="page"]::after {
	transform: scaleX(1);
}

.g-header__actions { display: flex; align-items: center; gap: .75rem; }
.g-theme-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	background: transparent;
	border: 1px solid var(--border-2);
	border-radius: var(--radius-full);
	color: var(--fg-2);
	cursor: pointer;
	transition: all .2s var(--ease);
}
.g-theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); }
.g-theme-toggle__icon { display: inline-flex; }
[data-theme="dark"] .g-theme-toggle__icon--sun { display: none; }
[data-theme="light"] .g-theme-toggle__icon--moon { display: none; }

.g-menu-toggle {
	display: none;
	background: transparent;
	border: 1px solid var(--border-2);
	color: var(--fg);
	width: 40px; height: 40px;
	border-radius: var(--radius-full);
	cursor: pointer;
}

@media (max-width: 960px) {
	.g-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg-2); border-top: 1px solid var(--border); padding: 1rem; }
	.g-nav.is-open { display: block; }
	.g-nav__list { flex-direction: column; gap: 0; }
	.g-nav__item > a { padding: 1rem; border-bottom: 1px solid var(--border); }
	.g-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.g-header__cta { display: none; }
}

/* ---------- HERO ---------- */
.g-hero {
	position: relative;
	padding-block: clamp(3.5rem, 7vw, 6.5rem);
	overflow: hidden;
}
.g-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.g-hero__orb {
	position: absolute;
	width: 600px; height: 600px;
	border-radius: 50%;
	filter: blur(120px);
	opacity: 0.35;
	animation: orb-float 20s ease-in-out infinite;
}
.g-hero__orb--1 { top: -200px; left: -200px; background: var(--cyan); }
.g-hero__orb--2 { bottom: -300px; right: -200px; background: var(--violet); animation-delay: -10s; }

@keyframes orb-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(50px, -50px) scale(1.1); }
}

.g-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
[data-theme="light"] .g-hero__grid {
	background-image:
		linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.g-hero__inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin-inline: auto; }
.g-hero__title { margin-bottom: 1.25rem; }
.g-hero__lead {
	font-size: clamp(1rem, 0.6vw + 0.9rem, 1.125rem);
	color: var(--fg-2);
	max-width: 580px;
	margin-inline: auto;
	margin-bottom: 2rem;
}
.g-hero__actions { display: flex; gap: .875rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.75rem; }

.g-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	max-width: 640px;
	margin-inline: auto;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
}
.g-hero__stats dt {
	font-family: var(--font-mono);
	font-size: clamp(1.5rem, 1.5vw + 0.8rem, 2.25rem);
	font-weight: 600;
	background: var(--gradient-aurora);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin-bottom: .25rem;
	letter-spacing: -0.04em;
	line-height: 1.1;
}
.g-hero__stats dd { margin: 0; color: var(--fg-3); font-size: .8125rem; }

/* ---------- PAGE HERO (internal pages) ---------- */
.g-page-hero {
	position: relative;
	padding-block: clamp(5rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
	overflow: hidden;
}
.g-page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at top, rgba(0, 217, 255, 0.12), transparent 60%),
		radial-gradient(ellipse at bottom, rgba(168, 85, 247, 0.08), transparent 60%);
	pointer-events: none;
}
.g-page-hero > .g-container { position: relative; text-align: center; }
.g-page-hero h1 { margin-bottom: 1.5rem; }
.g-page-hero .g-lead { margin-inline: auto; }

/* ---------- CARDS ---------- */
.g-card {
	position: relative;
	background: var(--surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 1.75rem;
	transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.g-card:hover {
	transform: translateY(-6px);
	border-color: var(--border-hot);
	box-shadow: var(--shadow-lg), 0 0 32px rgba(0, 217, 255, 0.15);
}
.g-card__icon {
	width: 44px;
	height: 44px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(168, 85, 247, 0.15));
	border: 1px solid var(--border-hot);
	color: var(--cyan);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}
.g-card__icon svg { width: 22px; height: 22px; }
.g-card__title { font-size: 1.125rem; font-weight: 600; margin-bottom: .5rem; color: var(--fg); line-height: 1.3; }
.g-card__text { color: var(--fg-2); font-size: .9375rem; line-height: 1.65; margin: 0; }

.g-card--post { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.g-card--post .g-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.g-card--post .g-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.g-card--post:hover .g-card__media img { transform: scale(1.05); }
.g-card--post .g-card__body { padding: 1.5rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.g-card__meta { font-family: var(--font-mono); font-size: .75rem; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: .75rem; }
.g-card__title a { color: inherit; }
.g-card__link { display: inline-flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: 1rem; font-weight: 600; }

/* ---------- STEPS ---------- */
.g-steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	counter-reset: step;
}
@media (max-width: 960px) { .g-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g-steps { grid-template-columns: 1fr; } }

.g-steps li {
	position: relative;
	padding: 1.75rem;
	background: var(--surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
}
.g-steps__num {
	display: block;
	font-family: var(--font-mono);
	font-size: .875rem;
	font-weight: 500;
	background: var(--gradient-aurora);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	letter-spacing: 0.08em;
	margin-bottom: 1rem;
}
.g-steps li h3 { font-size: 1.125rem; margin-bottom: .5rem; }
.g-steps li p { color: var(--fg-2); font-size: .875rem; line-height: 1.65; margin: 0; }

/* ---------- SERVICES ---------- */
.g-services { display: flex; flex-direction: column; gap: 4rem; }
.g-service {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2rem;
	align-items: start;
	padding: 2.5rem;
	background: var(--surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	scroll-margin-top: 100px;
}
@media (max-width: 720px) {
	.g-service { grid-template-columns: 1fr; padding: 1.75rem; gap: 1.25rem; }
}
.g-service__icon {
	width: 64px; height: 64px;
	border-radius: var(--radius-lg);
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(168, 85, 247, 0.15));
	border: 1px solid var(--border-hot);
	color: var(--cyan);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 24px rgba(0, 217, 255, 0.2);
}
.g-service__icon svg { width: 28px; height: 28px; }
.g-service__body h2 { font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem); margin-bottom: 1rem; }
.g-service__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .75rem; }
.g-service__list li { display: flex; align-items: flex-start; gap: .625rem; color: var(--fg-2); }
.g-service__list svg { color: var(--cyan); flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; }

/* ---------- CTA ---------- */
.g-cta { padding-block: clamp(3rem, 6vw, 5rem); }
.g-cta__box {
	position: relative;
	padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 4vw, 4rem);
	border-radius: var(--radius-xl);
	background:
		linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(168, 85, 247, 0.08)),
		var(--bg-2);
	border: 1px solid var(--border-hot);
	text-align: center;
	overflow: hidden;
}
.g-cta__box::before {
	content: '';
	position: absolute;
	inset: -50%;
	background:
		radial-gradient(circle at 30% 50%, rgba(0, 217, 255, 0.15), transparent 50%),
		radial-gradient(circle at 70% 50%, rgba(168, 85, 247, 0.15), transparent 50%);
	pointer-events: none;
}
.g-cta__box > * { position: relative; }
.g-cta__box h2 { margin-bottom: 1rem; }
.g-cta__box p { color: var(--fg-2); max-width: 520px; margin: 0 auto 2rem; font-size: 1.125rem; }

/* ---------- CONTACT ---------- */
.g-contact {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 3rem;
	align-items: start;
}
@media (max-width: 880px) { .g-contact { grid-template-columns: 1fr; } }

.g-contact__info h2, .g-contact__form h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }

.g-contact__method {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--surface);
	backdrop-filter: blur(12px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	color: var(--fg);
	margin-bottom: .75rem;
	transition: all .2s var(--ease);
}
.g-contact__method:hover { border-color: var(--border-hot); transform: translateX(4px); color: var(--fg); }
.g-contact__icon {
	width: 44px; height: 44px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(168, 85, 247, 0.15));
	border: 1px solid var(--border-hot);
	color: var(--cyan);
	display: inline-flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.g-contact__method strong { display: block; font-weight: 600; margin-bottom: .125rem; }
.g-contact__method em { display: block; color: var(--fg-2); font-style: normal; font-size: .875rem; font-family: var(--font-mono); }

.g-contact__form {
	padding: 2.5rem;
	background: var(--surface);
	backdrop-filter: blur(12px);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
}
.g-contact__form label {
	display: block;
	margin-bottom: 1.25rem;
}
.g-contact__form label > span {
	display: block;
	font-family: var(--font-mono);
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--fg-2);
	margin-bottom: .5rem;
}
.g-contact__form input,
.g-contact__form select,
.g-contact__form textarea {
	width: 100%;
	padding: .875rem 1rem;
	background: var(--bg-3);
	color: var(--fg);
	border: 1px solid var(--border-2);
	border-radius: var(--radius);
	font-family: inherit;
	font-size: .9375rem;
	transition: all .2s var(--ease);
}
.g-contact__form input::placeholder,
.g-contact__form textarea::placeholder { color: var(--fg-3); }
.g-contact__form input:focus,
.g-contact__form select:focus,
.g-contact__form textarea:focus {
	outline: none;
	border-color: var(--cyan);
	box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.15);
}
.g-contact__form textarea { resize: vertical; min-height: 120px; }

/* Honeypot — oculto visualmente pero accesible para bots */
.g-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Alerts de formulario */
.g-alert {
	padding: 1rem 1.25rem;
	border-radius: var(--radius);
	margin-bottom: 1.5rem;
	font-size: .9375rem;
	border: 1px solid;
}
.g-alert--success {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.4);
	color: #6ee7b7;
}
.g-alert--error {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.4);
	color: #fca5a5;
}

/* ---------- FOOTER ---------- */
.g-footer {
	position: relative;
	background: var(--bg-2);
	border-top: 1px solid var(--border);
	padding-block: 4rem 2rem;
	margin-top: 4rem;
}
.g-footer::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 1px;
	background: var(--gradient-aurora);
	opacity: .5;
}
.g-footer__grid {
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr);
	gap: 3rem;
	margin-bottom: 3rem;
}
@media (max-width: 880px) { .g-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .g-footer__grid { grid-template-columns: 1fr; } }

.g-footer__tagline { color: var(--fg-2); max-width: 340px; font-size: .9375rem; margin-block: 1rem 1.5rem; }
.g-footer__social { display: flex; gap: .5rem; }
.g-footer__social a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 40px; height: 40px;
	background: var(--bg-3);
	border: 1px solid var(--border);
	border-radius: var(--radius-full);
	color: var(--fg-2);
	transition: all .2s var(--ease);
}
.g-footer__social a:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: var(--glow-cyan); transform: translateY(-2px); }

.g-footer__title {
	font-size: .8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fg);
	margin-bottom: 1.25rem;
	font-family: var(--font-mono);
}
.g-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.g-footer__links a {
	color: var(--fg-2);
	font-size: .9375rem;
	transition: color .15s var(--ease);
}
.g-footer__links a:hover { color: var(--cyan); }
.g-footer__contact li { display: flex; align-items: center; gap: .625rem; color: var(--fg-2); font-size: .875rem; }
.g-footer__contact svg { color: var(--cyan); flex-shrink: 0; }

.g-footer__bottom {
	padding-top: 2rem;
	border-top: 1px solid var(--border);
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	color: var(--fg-3);
	font-size: .8125rem;
}
.g-footer__bottom p { margin: 0; }

/* ---------- WHATSAPP FLOAT ---------- */
.g-whatsapp-float {
	position: fixed;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	background: #25D366;
	color: #fff;
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 4px rgba(37, 211, 102, 0.15);
	transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.g-whatsapp-float:hover {
	transform: scale(1.08);
	color: #fff;
	box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5), 0 0 0 8px rgba(37, 211, 102, 0.15);
}
.g-whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */

.g-portfolio {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2rem;
}
@media (max-width: 880px) { .g-portfolio { grid-template-columns: 1fr; } }

.g-project {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: 2rem;
	background: var(--surface);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	overflow: hidden;
	transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
	scroll-margin-top: 100px;
}

.g-project::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--gradient-aurora);
	opacity: .5;
	transition: opacity .3s var(--ease);
}

.g-project:hover {
	transform: translateY(-4px);
	border-color: var(--border-hot);
	box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 217, 255, 0.12);
}
.g-project:hover::before { opacity: 1; }

.g-project__head {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.g-project__icon {
	width: 48px;
	height: 48px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, rgba(0, 217, 255, 0.15), rgba(168, 85, 247, 0.15));
	border: 1px solid var(--border-hot);
	color: var(--cyan);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: 0 0 24px rgba(0, 217, 255, 0.18);
}
.g-project__icon svg { width: 22px; height: 22px; }

.g-project__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fg-3);
}
.g-project__badge { color: var(--cyan); font-weight: 500; }
.g-project__meta-sep { opacity: .5; }
.g-project__country {
	display: inline-flex;
	align-items: center;
	gap: .25rem;
}
.g-project__country svg { width: 12px; height: 12px; }

.g-project__title {
	font-size: clamp(1.25rem, 1vw + 0.9rem, 1.625rem);
	font-weight: 700;
	color: var(--fg);
	margin: 0 0 .375rem;
	letter-spacing: -0.02em;
	line-height: 1.2;
}
.g-project__subtitle {
	font-size: .9375rem;
	color: var(--cyan);
	margin: 0 0 1rem;
	font-weight: 500;
}
.g-project__description {
	color: var(--fg-2);
	font-size: .9375rem;
	line-height: 1.65;
	margin: 0 0 1.25rem;
}

.g-project__stack {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}
.g-chip {
	display: inline-flex;
	align-items: center;
	padding: .25rem .625rem;
	background: var(--bg-3);
	border: 1px solid var(--border-2);
	border-radius: var(--radius-full);
	font-family: var(--font-mono);
	font-size: .6875rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--fg-2);
	transition: all .2s var(--ease);
}
.g-project:hover .g-chip { border-color: var(--border-hot); color: var(--cyan); }

.g-project__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	flex-wrap: wrap;
}
.g-project__metric {
	font-family: var(--font-mono);
	font-size: .75rem;
	letter-spacing: 0.05em;
	color: var(--fg-3);
	text-transform: uppercase;
}
.g-project__link {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	font-size: .875rem;
	font-weight: 600;
	color: var(--cyan);
	transition: gap .2s var(--ease);
}
.g-project__link:hover { color: var(--cyan); gap: .625rem; }
.g-project__link svg { width: 14px; height: 14px; }

/* Variante CTA — card final "Y muchos más" */
.g-project--cta {
	background:
		linear-gradient(135deg, rgba(0, 217, 255, 0.06), rgba(168, 85, 247, 0.06)),
		var(--surface);
	border-color: var(--border-hot);
}
.g-project--cta::before { opacity: 1; height: 3px; }
.g-project--cta:hover {
	box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 217, 255, 0.2), 0 0 80px rgba(168, 85, 247, 0.1);
}
.g-project__icon--cta {
	background: var(--gradient-aurora);
	color: #fff;
	border-color: transparent;
	box-shadow: var(--glow-aurora);
}
.g-project__icon--cta svg { animation: cta-spin 8s linear infinite; }
@keyframes cta-spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
.g-project--cta .g-project__title {
	background: var(--gradient-text);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

/* ==========================================================================
   COUNTRIES / GLOBAL PRESENCE
   ========================================================================== */

.g-countries {
	list-style: none;
	padding: 0;
	margin: 0 0 3rem;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1rem;
}
@media (max-width: 960px) { .g-countries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .g-countries { grid-template-columns: repeat(2, 1fr); } }

.g-country {
	display: flex;
	align-items: center;
	gap: .875rem;
	padding: 1.125rem 1.25rem;
	background: var(--surface);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	transition: all .25s var(--ease);
}
.g-country:hover {
	border-color: var(--border-hot);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 217, 255, 0.1);
}

.g-country__flag {
	font-size: 1.75rem;
	line-height: 1;
	flex-shrink: 0;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}
.g-country__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.g-country__name {
	font-size: .875rem;
	font-weight: 600;
	color: var(--fg);
	letter-spacing: -0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.g-country__city {
	font-family: var(--font-mono);
	font-size: .6875rem;
	color: var(--fg-3);
	font-style: normal;
	letter-spacing: 0.02em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.g-global-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	max-width: 900px;
	margin-inline: auto;
	padding-top: 2rem;
	border-top: 1px solid var(--border);
	text-align: center;
}
@media (max-width: 640px) { .g-global-stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } }

.g-global-stats dt {
	font-family: var(--font-mono);
	font-size: clamp(1.5rem, 1.5vw + 0.75rem, 2.25rem);
	font-weight: 600;
	background: var(--gradient-aurora);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	margin: 0 0 .25rem;
	letter-spacing: -0.04em;
	line-height: 1;
}
.g-global-stats dd {
	margin: 0;
	color: var(--fg-3);
	font-size: .8125rem;
	font-family: var(--font-mono);
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

/* ---------- PROSE (pages / posts content) ---------- */
.g-prose { font-size: 1.0625rem; line-height: 1.75; color: var(--fg-2); }
.g-prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
.g-prose h3 { margin-top: 2rem; margin-bottom: .75rem; }
.g-prose ul, .g-prose ol { padding-left: 1.25rem; margin-bottom: 1.5rem; }
.g-prose li { margin-bottom: .5rem; }
.g-prose blockquote {
	border-left: 3px solid var(--cyan);
	padding: .5rem 0 .5rem 1.5rem;
	margin: 2rem 0;
	font-style: italic;
	color: var(--fg);
}
.g-prose img { border-radius: var(--radius); margin-block: 2rem; }

/* ---------- PAGINATION ---------- */
.g-pagination { display: flex; justify-content: center; margin-top: 3rem; }
.g-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 .75rem;
	margin: 0 .25rem;
	background: var(--bg-3);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--fg-2);
	font-weight: 500;
}
.g-pagination .page-numbers.current { background: var(--gradient-aurora); color: #fff; border-color: transparent; }

/* ---------- COMPAT — desactivar cualquier inline style de stackable heredado ---------- */
.stk-block, [class*="wp-block-stackable"] {
	background: transparent !important;
	background-image: none !important;
}
.stk-block-heading__text, .stk-block-subtitle__text, .stk-block-text__text {
	color: inherit !important;
	font-family: var(--font-body) !important;
}
