/* La j de Unbounded no tiene descendente y parece cortada: se reemplaza solo esa letra por la de Lexend */
@font-face {
	font-family: 'WbJ';
	src: url('https://webbingsite.io/wp-content/uploads/webbers-fonts/lexend-j-700.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+006A;
}

:root {
	--wb-bg: var(--global-palette8, #0E1013);
	--wb-surface: var(--global-palette9, #181C20);
	--wb-surface-2: #22282C;
	--wb-line: var(--global-palette7, #2C3336);
	--wb-ink: var(--global-palette3, #F1F4EF);
	--wb-muted: var(--global-palette5, #9AA49E);
	--wb-lime: var(--global-palette1, #C9F23A);
	--wb-blue: var(--global-palette12, #3D7BFF);
	--wb-coral: var(--global-palette13, #FF5C39);
	--wb-teal: #2DD4BF;
	--wb-sun: var(--global-palette14, #FFC93C);
	--wb-magenta: var(--global-palette15, #FF3EA5);
	--wb-head: 'WbJ', Unbounded, ui-sans-serif, system-ui, sans-serif;
	--wb-body: Onest, ui-sans-serif, system-ui, sans-serif;
	--wb-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Titulos: la j sale de WbJ, el resto de Unbounded */
html:root { --global-heading-font-family: 'WbJ', Unbounded, sans-serif; }
body h1, body h2, body h3, body h4, body h5, body h6, .site-title { font-family: 'WbJ', Unbounded, sans-serif; }

/* Encabezado (oscuro en todo el sitio, tambien sobre paginas con estilo propio) */
.site-header,
.site-header .site-header-row-container-inner {
	background-color: var(--wb-bg) !important;
}
.site-header .site-title {
	font-family: var(--wb-head);
	font-weight: 700;
	font-size: 22px;
	letter-spacing: -0.01em;
	text-transform: lowercase;
	color: var(--wb-ink);
}
.site-header .site-title::after {
	content: "_";
	color: var(--wb-lime);
	margin-left: 1px;
}
.site-header .main-navigation .primary-menu-container > ul > li.menu-item > a {
	color: var(--wb-ink);
	font-size: 15px;
}
.site-header .main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
	color: var(--wb-lime);
}
.site-footer, .site-footer a { color: var(--wb-muted); }

/* Hero */
.wb-hero {
	position: relative;
	overflow: hidden;
	min-height: calc(100svh - 92px - var(--wp-admin--admin-bar--height, 0px));
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 48px 24px 0;
	margin: 0;
	background: var(--wb-bg);
}
.entry-content .wb-hero.alignfull { padding-left: 24px; padding-right: 24px; }
.wb-hero__grid {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto !important;
	align-items: center !important;
	gap: 32px !important;
	flex: 1 0 auto;
}
.wb-hero h1 {
	font-size: clamp(32px, 3.9vw, 56px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	margin: 0 0 20px;
	max-width: 16ch;
	text-wrap: balance;
}
.wb-hero h1 mark {
	background: none !important;
	color: var(--wb-lime) !important;
}
.wb-hero__lead {
	font-size: clamp(17px, 1.4vw, 20px);
	line-height: 1.6;
	color: var(--wb-muted);
	max-width: 34ch;
	margin: 0 0 32px;
}
.wb-hero .wp-block-buttons { gap: 12px; }
.wb-hero .wp-block-button__link {
	border-radius: 999px;
	padding: 15px 28px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	transition: transform .2s var(--wb-ease), background-color .2s, color .2s, border-color .2s;
}
.wb-hero .wp-block-button__link:active { transform: translateY(1px); }
.wb-hero .wb-btn-primary .wp-block-button__link {
	background: var(--wb-lime);
	color: var(--wb-bg);
	border: 1px solid var(--wb-lime);
}
.wb-hero .wb-btn-primary .wp-block-button__link:hover { background: var(--global-palette2, #B5DC2C); }
.wb-hero .wb-btn-secondary .wp-block-button__link {
	background: transparent;
	color: var(--wb-ink);
	border: 1px solid var(--wb-line);
}
.wb-hero .wb-btn-secondary .wp-block-button__link:hover { border-color: var(--wb-ink); }

/* Escena 3D */
.wb-art { position: relative; }
.wb-art .wb-art__inner { width: 114%; margin-right: -14%; }
.wb-scene {
	container-type: inline-size;
	position: relative;
	width: 100%;
	aspect-ratio: 1 / .92;
	perspective: 1800px;
	perspective-origin: 40% 30%;
}
.wb-floor {
	position: absolute;
	left: 4cqw; right: 2cqw; bottom: 2cqw; height: 34cqw;
	background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0) 100%);
}
.wb-stage {
	position: absolute;
	inset: 0;
	transform-style: preserve-3d;
	transform: rotateX(var(--wb-rx, 20deg)) rotateY(var(--wb-ry, -18deg)) rotateZ(1deg);
	transition: transform 1.2s var(--wb-ease);
}

/* Notebook */
.wb-laptop {
	position: absolute;
	left: 6cqw; top: 8cqw;
	width: 74cqw;
	transform-style: preserve-3d;
}
.wb-laptop__lid {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10.4;
	padding: 1.5cqw;
	border-radius: 2.2cqw 2.2cqw .5cqw .5cqw;
	background: linear-gradient(180deg, #16191C, #0A0C0E);
	box-shadow: inset 0 0 0 .22cqw #3A4248, inset 0 .3cqw .4cqw rgba(255, 255, 255, .06);
	transform-origin: bottom center;
	transform: rotateX(-6deg);
	transform-style: preserve-3d;
}
.wb-laptop__screen {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: .7cqw;
	background: #F3F5F7;
}
.wb-laptop__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(118deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 38%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .12) 100%);
	pointer-events: none;
}
.wb-laptop__base {
	position: absolute;
	left: -5%; top: 100%;
	width: 110%;
	height: 34cqw;
	transform-origin: top center;
	transform: rotateX(90deg);
	border-radius: .4cqw .4cqw 2.4cqw 2.4cqw;
	background: linear-gradient(180deg, #8C959C 0%, #6F787F 55%, #59626A 100%);
	box-shadow: inset 0 -.6cqw 0 #3E464D, inset 0 .3cqw 0 rgba(255, 255, 255, .28);
}
.wb-laptop__keys {
	position: absolute;
	left: 9%; right: 9%; top: 8%; height: 46%;
	border-radius: .8cqw;
	background:
		repeating-linear-gradient(90deg, transparent 0 .35cqw, #22272B .35cqw 3.9cqw, transparent 3.9cqw 4.25cqw),
		repeating-linear-gradient(180deg, transparent 0 .35cqw, #22272B .35cqw 3.6cqw, transparent 3.6cqw 3.95cqw);
	background-color: #5B646B;
	background-blend-mode: darken;
	opacity: .95;
}
.wb-laptop__pad {
	position: absolute;
	left: 33%; width: 34%; top: 60%; height: 30%;
	border-radius: 1cqw;
	background: linear-gradient(180deg, #7C858C, #6C757C);
	box-shadow: inset 0 0 0 .15cqw #59626A;
}

/* Sitio dentro de la pantalla */
.wb-site { display: flex; flex-direction: column; height: 100%; font-family: var(--wb-body); color: #1C2226; }
.wb-site__nav { display: flex; align-items: center; gap: 2.2cqw; height: 9%; padding: 0 4cqw; border-bottom: .12cqw solid #E1E6EA; }
.wb-site__logo { width: 6cqw; height: 1.6cqw; border-radius: 1cqw; background: #1C2226; margin-right: auto; }
.wb-site__link { width: 4cqw; height: .8cqw; border-radius: .5cqw; background: #C3CBD1; }
.wb-site__cta { width: 7cqw; height: 2.4cqw; border-radius: 2cqw; background: var(--wb-blue); }
.wb-site__hero { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; padding: 3.5cqw 4cqw 2cqw; align-items: center; }
.wb-site__copy { display: flex; flex-direction: column; gap: 1.1cqw; }
.wb-site__title { font-family: var(--wb-head); font-weight: 700; font-size: 2.9cqw; line-height: 1.12; letter-spacing: -0.02em; color: #1C2226; }
.wb-site__line { display: block; height: .8cqw; width: 92%; border-radius: .5cqw; background: #D3DADF; }
.wb-site__line--short { width: 64%; }
.wb-site__btn { align-self: flex-start; margin-top: .8cqw; padding: 1cqw 2.2cqw; border-radius: 2cqw; background: var(--wb-blue); color: #fff; font-size: 1.4cqw; font-weight: 600; }
.wb-site__photo {
	height: 100%;
	min-height: 16cqw;
	border-radius: 1.4cqw;
	background:
		radial-gradient(circle at 72% 28%, #FFE2A8 0 7%, rgba(255, 226, 168, 0) 8%),
		radial-gradient(120% 70% at 30% 110%, #2B2140 0 40%, rgba(43, 33, 64, 0) 41%),
		radial-gradient(90% 60% at 85% 105%, #4A2E52 0 45%, rgba(74, 46, 82, 0) 46%),
		linear-gradient(170deg, #FFB37A 0%, #FF6F61 45%, #B83F6E 80%, #5A2D5E 100%);
}
.wb-site__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2cqw; padding: 0 4cqw 3cqw; height: 22%; }
.wb-site__tile { border-radius: 1cqw; }
.wb-site__tile.t1 { background: linear-gradient(160deg, #8FD3FF, #3D7BFF 70%, #22408F); }
.wb-site__tile.t2 { background: linear-gradient(160deg, #E4F7A8, #9CCB2E 65%, #4C7A1E); }
.wb-site__tile.t3 { background: linear-gradient(160deg, #FFC9E3, #FF3EA5 65%, #8E1F5C); }

/* Celular */
.wb-phone {
	position: absolute;
	right: 0; top: 34cqw;
	width: 20cqw;
	aspect-ratio: 9 / 18.5;
	padding: 1cqw;
	border-radius: 3.6cqw;
	background: linear-gradient(160deg, #3D454C, #15181B 60%);
	box-shadow: inset 0 0 0 .25cqw #555F67, 2cqw 3.5cqw 5cqw rgba(0, 0, 0, .55);
	transform: translateZ(16cqw) rotateY(14deg) rotateZ(-2deg);
}
.wb-phone__screen {
	position: relative;
	height: 100%;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	gap: 1.2cqw;
	padding: 4cqw 1.8cqw 2cqw;
	border-radius: 2.7cqw;
	background: #F3F5F7;
	font-family: var(--wb-body);
}
.wb-phone__screen::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(125deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0) 35%);
	pointer-events: none;
}
.wb-phone__notch { position: absolute; top: 1cqw; left: 50%; width: 6cqw; height: 1.4cqw; margin-left: -3cqw; border-radius: 1cqw; background: #0A0C0E; }
.wb-phone__photo { height: 15cqw; border-radius: 1.4cqw; background: radial-gradient(circle at 70% 30%, #FFE2A8 0 9%, rgba(255, 226, 168, 0) 10%), linear-gradient(170deg, #FFB37A 0%, #FF6F61 50%, #B83F6E 100%); }
.wb-phone__title { font-family: var(--wb-head); font-weight: 700; font-size: 2.1cqw; line-height: 1.15; color: #1C2226; }
.wb-phone__btn { margin-top: auto; padding: 1cqw; border-radius: 2cqw; background: var(--wb-blue); color: #fff; font-size: 1.3cqw; font-weight: 600; text-align: center; }
.wb-phone .wb-site__line { height: .7cqw; }

/* Tarjetas flotantes */
.wb-card {
	position: absolute;
	padding: 2cqw;
	border-radius: 2.2cqw;
	background: linear-gradient(160deg, #262D32, #181C20);
	box-shadow: inset 0 0 0 .15cqw #353E44, inset 0 .25cqw 0 rgba(255, 255, 255, .06), 1.5cqw 3cqw 5cqw rgba(0, 0, 0, .55);
	font-family: var(--wb-body);
}
.wb-card__label { display: block; font-size: 1.8cqw; font-weight: 600; color: var(--wb-ink); margin-bottom: 1.6cqw; }
.wb-card--ads { left: 0; top: 56cqw; width: 26cqw; transform: translateZ(26cqw) rotateY(8deg); }
.wb-bars { display: flex; align-items: flex-end; gap: 1.4cqw; height: 11cqw; }
.wb-bars span { flex: 1; border-radius: .8cqw .8cqw .3cqw .3cqw; }
.wb-bars .b1 { height: 35%; background: linear-gradient(180deg, #6E9BFF, #3D7BFF); }
.wb-bars .b2 { height: 52%; background: linear-gradient(180deg, #FF8A6E, #FF5C39); }
.wb-bars .b3 { height: 74%; background: linear-gradient(180deg, #FF7CC1, #FF3EA5); }
.wb-bars .b4 { height: 100%; background: linear-gradient(180deg, #DDFA7A, #C9F23A); }
.wb-card--speed { left: 62cqw; top: 0; width: 19cqw; transform: translateZ(12cqw) rotateY(10deg); }
.wb-gauge {
	position: relative;
	aspect-ratio: 1;
	border-radius: 50%;
	background: conic-gradient(var(--wb-lime) 0 86%, #2C3336 86% 100%);
	display: grid;
	place-items: center;
}
.wb-gauge::before { content: ""; position: absolute; inset: 1.6cqw; border-radius: 50%; background: linear-gradient(160deg, #262D32, #181C20); }
.wb-gauge span { position: relative; font-size: 2cqw; font-weight: 600; color: var(--wb-ink); }

/* Cinta de servicios */
.wb-marquee {
	list-style: none;
	margin: 48px -24px 0 !important;
	padding: 18px 0 !important;
	border-top: 1px solid var(--wb-line);
	display: flex;
	gap: 0;
	width: max-content;
	animation: wb-marquee 70s linear infinite;
	font-family: var(--wb-head);
	font-weight: 700;
	font-size: clamp(15px, 1.4vw, 20px);
	white-space: nowrap;
}
.wb-marquee li { margin: 0; padding: 0 28px; position: relative; }
.wb-marquee li::after { content: ""; position: absolute; right: -4px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--wb-line); transform: translateY(-50%); }
.wb-marquee li:nth-child(5n+1) { color: var(--wb-lime); }
.wb-marquee li:nth-child(5n+2) { color: var(--wb-blue); }
.wb-marquee li:nth-child(5n+3) { color: var(--wb-coral); }
.wb-marquee li:nth-child(5n+4) { color: var(--wb-magenta); }
.wb-marquee li:nth-child(5n+5) { color: var(--wb-sun); }
.wb-hero:hover .wb-marquee { animation-play-state: paused; }

/* Entrada (una sola vez) */
.wb-hero .wb-reveal { animation: wb-up .8s var(--wb-ease) both; }
.wb-hero .wb-reveal.r2 { animation-delay: .1s; }
.wb-hero .wb-reveal.r3 { animation-delay: .2s; }
.wb-hero .wb-reveal.r4 { animation-delay: .25s; }

@keyframes wb-marquee { to { transform: translateX(-50%); } }
@keyframes wb-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 781px) {
	.wb-hero { min-height: auto; padding-top: 32px; }
	.entry-content .wb-hero.alignfull { padding-left: 16px; padding-right: 16px; }
	.wb-hero h1 { font-size: clamp(26px, 7.4vw, 36px); }
	.wb-art .wb-art__inner { width: 92%; margin: 8px auto 0; max-width: 460px; }
	.wb-hero__grid { gap: 8px !important; }
	.wb-marquee { margin-top: 24px !important; margin-left: -16px !important; margin-right: -16px !important; }
}

@media (prefers-reduced-motion: reduce) {
	.wb-marquee, .wb-hero .wb-reveal { animation: none !important; }
	.wb-stage { transition: none; }
}

/* Entradas de texto al hacer scroll (solo con JS activo; sin movimiento reducido) */
.wb-anim .wb-rv { opacity: 0; transition: opacity .7s var(--wb-ease), transform .85s var(--wb-ease); transition-delay: var(--d, 0ms); }
.wb-anim .wb-rv-up { transform: translateY(22px); }
.wb-anim .wb-rv-left { transform: translateX(-20px); }
.wb-anim .wb-rv-pop { transform: scale(.9); }
.wb-anim .wb-rv.is-in { opacity: 1; transform: none; }
.wb-anim .wb-rv-words { opacity: 1; }
.wb-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: 0 .03em .16em; margin: 0 -.03em -.16em; }
.wb-w__i { display: inline-block; }
.wb-anim .wb-rv-words .wb-w__i { transform: translateY(110%); transition: transform .9s var(--wb-ease); transition-delay: calc(var(--d, 0ms) + var(--wi, 0) * 45ms); }
.wb-anim .wb-rv-words.is-in .wb-w__i { transform: none; }
@media (prefers-reduced-motion: reduce) {
	.wb-anim .wb-rv, .wb-anim .wb-rv-words .wb-w__i { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Barra de navegacion fija: se esconde al bajar y vuelve al subir */
html { scroll-padding-top: 96px; }
#masthead {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 1000;
	transition: transform .4s var(--wb-ease);
}
html.wb-nav-hidden #masthead { transform: translateY(calc(-100% - var(--wp-admin--admin-bar--height, 0px))); }
@media (max-width: 600px) {
	#masthead { top: 0; }
	html.wb-nav-hidden #masthead { transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	#masthead { transition: none; }
}
