/* =============================================================
   B2B Grow Lab — Sections
   En esta primera entrega: Nav, Hero, Ticker, Stats.
   Las secciones restantes se agregarán en las próximas iteraciones.
   ============================================================= */

/* =============================================================
   NAV
   Sticky · backdrop blur · hairline bottom
   ============================================================= */

.b2bgl-nav {
	position: sticky;
	top: 0;
	z-index: var(--z-nav);
	background: rgba(244, 241, 234, 0.86);
	backdrop-filter: saturate(140%) blur(14px);
	-webkit-backdrop-filter: saturate(140%) blur(14px);
	border-bottom: 1px solid var(--rule);
}

.b2bgl-nav-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand .brand-mark,
.brand img,
.brand svg {
	width: 32px;
	height: auto;
	flex: none;
	display: block;
}

.brand-name {
	font-family: "Geist", sans-serif;
	font-weight: 600;
	letter-spacing: -0.01em;
	font-size: 15px;
	line-height: 1;
}

.brand-sub {
	font-family: "Geist Mono", monospace;
	font-size: 10px;
	color: var(--ink-3);
	letter-spacing: 0.10em;
	text-transform: uppercase;
	margin-top: 2px;
	line-height: 1;
}

.brand-stack {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 28px;
}
.nav-links a {
	font-size: 14px;
	color: var(--ink-2);
	text-decoration: none;
	letter-spacing: -0.005em;
	transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 4px;
}

.nav-cta {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* ----- Mobile hamburger (oculto en desktop) ----- */
.nav-hamb {
	display: none;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rule-strong);
	background: transparent;
	border-radius: 10px;
	padding: 0;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.nav-hamb span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .2s ease, opacity .15s ease;
}
.nav-hamb[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamb[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamb[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Sheet mobile */
.nav-sheet {
	position: fixed;
	inset: 0;
	background: rgba(244, 241, 234, 0.98);
	backdrop-filter: saturate(180%) blur(20px);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	z-index: var(--z-modal);
	padding: 88px 24px 32px;
	display: none;
	flex-direction: column;
	overflow-y: auto;
}
.nav-sheet.open { display: flex; }
.nav-sheet a {
	display: block;
	font-family: "Geist", sans-serif;
	font-size: 22px;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: var(--ink);
	padding: 18px 0;
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
}
.nav-sheet .sheet-ctas {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 28px;
}
.nav-sheet .sheet-ctas .btn { width: 100%; justify-content: center; height: 48px; font-size: 15px; }

body.nav-locked { overflow: hidden; }

@media (max-width: 980px) {
	.nav-links { display: none; }
	.nav-hamb { display: inline-flex; }
}

@media (max-width: 520px) {
	.nav-cta .btn-ghost { display: none; }
}

/* =============================================================
   HERO
   ============================================================= */

.b2bgl-hero {
	padding: 80px 0 96px;
	position: relative;
	overflow: hidden;
}

@media (max-width: 640px) {
	.b2bgl-hero { padding: 48px 0 64px; }
}

.b2bgl-hero .wrap-wide { position: relative; z-index: 1; }

.hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
	gap: 56px;
	align-items: start;
}

@media (max-width: 1024px) {
	.hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-meta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.b2bgl-hero h1 { margin: 8px 0 28px; }

.hero-ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 32px;
}

.hero-footnote {
	margin-top: 28px;
	display: flex;
	gap: 18px 28px;
	flex-wrap: wrap;
	color: var(--ink-3);
	font-size: 12px;
	font-family: "Geist Mono", monospace;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.hero-footnote .dot {
	width: 5px;
	height: 5px;
	background: var(--accent);
	border-radius: var(--radius-pill);
	display: inline-block;
	margin-right: 8px;
	vertical-align: 2px;
}
.hero-footnote > span { display: inline-flex; align-items: center; }

/* Ornament grid background del hero */
.ornament-grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(to right, rgba(26, 24, 25, 0.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(26, 24, 25, 0.05) 1px, transparent 1px);
	background-size: 88px 88px;
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 80%);
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 80%);
	pointer-events: none;
	z-index: 0;
}

/* =============================================================
   TICKER
   ============================================================= */

.b2bgl-ticker {
	background: var(--ink);
	color: var(--paper);
	overflow: hidden;
	border-top: 1px solid var(--night-rule);
	border-bottom: 1px solid var(--night-rule);
}

.ticker-track {
	display: flex;
	gap: 56px;
	padding: 18px 0;
	animation: b2bgl-ticker 40s linear infinite;
	white-space: nowrap;
	width: max-content;
}

.ticker-item {
	font-family: "Geist Mono", monospace;
	font-size: 13px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--paper);
	display: inline-flex;
	align-items: center;
	gap: 56px;
}
.ticker-item::after {
	content: "✦";
	color: var(--accent);
	margin-left: 0;
}

@keyframes b2bgl-ticker {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.ticker-track { animation: none; }
}

/* =============================================================
   STATS STRIP (anticipo — útil ya en esta entrega)
   ============================================================= */

.b2bgl-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
}

.b2bgl-stats .stat {
	padding: 36px 28px;
	border-right: 1px solid var(--rule);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.b2bgl-stats .stat:last-child { border-right: 0; }

.b2bgl-stats .stat .lbl {
	font-family: "Geist Mono", monospace;
	font-size: 10.5px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--ink-3);
}

.b2bgl-stats .stat .big {
	font-family: "Geist", sans-serif;
	font-size: clamp(40px, 4.6vw, 64px);
	line-height: 1;
	font-weight: 500;
	letter-spacing: -0.035em;
	color: var(--ink);
}
.b2bgl-stats .stat .big .ser {
	font-family: "Instrument Serif", serif;
	font-style: italic;
	color: var(--accent-deep);
}

.b2bgl-stats .stat .copy {
	font-size: 13.5px;
	color: var(--ink-2);
	line-height: 1.45;
	max-width: 32ch;
}

@media (max-width: 900px) {
	.b2bgl-stats { grid-template-columns: 1fr 1fr; }
	.b2bgl-stats .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
	.b2bgl-stats .stat:nth-child(odd) { border-right: 1px solid var(--rule); }
}

@media (max-width: 520px) {
	.b2bgl-stats { grid-template-columns: 1fr; }
	.b2bgl-stats .stat { border-right: 0 !important; }
}
