/*
 * Vida: patron de red en movimiento lento detras de toda la pagina
 * y tarjetas de caracteristicas interactivas.
 */

/* ---------- Patron de fondo: telaranas ---------- */
body { position: relative; --wb-web-a: 900px; --wb-web-b: 1000px; }
body::before, body::after {
	content: "";
	position: fixed;
	z-index: 0;
	pointer-events: none;
	background-image: url('https://webbingsite.io/wp-content/uploads/webbing/telarana-simple.svg');
	background-repeat: repeat;
}
body::before {
	inset: calc(var(--wb-web-a) * -1.05);
	background-size: var(--wb-web-a) var(--wb-web-a);
	opacity: .7;
}
body::after {
	inset: calc(var(--wb-web-b) * -1.05);
	background-size: var(--wb-web-b) var(--wb-web-b);
	opacity: .32;
}
body::after { display: none; }
@keyframes wb-drift-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(var(--wb-web-a), var(--wb-web-a), 0); } }
@keyframes wb-drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(var(--wb-web-b) * -1), var(--wb-web-b), 0); } }
@media (max-width: 781px) {
	body { --wb-web-a: 560px; --wb-web-b: 620px; }
}

/* El contenido va por encima del patron y las secciones lima se vuelven transparentes */
#wrapper { position: relative; z-index: 1; }
#wrapper, #inner-wrap, .site, .content-bg, .content-area, .content-container, .entry-content-wrap, .site-main, article.page, .entry,
.wb-section, .wb-metrics, .wb-page-hero, .wb-split, .wb-banner-wrap, .wb-extra, .wb-quote, .wb-clients-section, .wb-team-section {
	background-color: transparent !important;
}
#wpadminbar { z-index: 99999; }

/* El buscador "Los negocios de CABA" queda sin patron */
body.page-id-23::before, body.page-id-23::after { display: none; }

@media (prefers-reduced-motion: reduce) {
	body::before, body::after { animation: none; }
}

/* ---------- Tarjetas de caracteristicas ---------- */
.wb-feat {
	--rx: 0deg; --ry: 0deg; --lift: 0px; --s: 1; --mx: 50%; --my: 50%;
	transform: perspective(900px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
	transform-style: preserve-3d;
	transition: transform .55s var(--wb-ease), background-color .35s ease, border-color .35s ease, box-shadow .45s var(--wb-ease), translate .8s var(--wb-ease), rotate .8s var(--wb-ease), opacity .6s ease;
}
.wb-feat.is-tracking { transition: transform .12s linear, background-color .35s ease, border-color .35s ease, box-shadow .45s var(--wb-ease); }
.wb-feat:hover, .wb-feat:focus-within { --lift: -8px; }
.wb-feat:active { --s: .97; }

/* Brillo que sigue al cursor */
.wb-feat::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(220px circle at var(--mx) var(--my), rgba(201, 242, 58, .28), rgba(201, 242, 58, 0) 65%);
	transition: opacity .35s ease;
}
.wb-feat:hover::before { opacity: 1; }

/* Cambio de color al pasar el cursor */
.wb-feat:hover, .wb-feat.f-velocidad:hover, .wb-feat:focus-within {
	background: var(--wb-navy) !important;
	border-color: var(--wb-navy) !important;
	box-shadow: 0 28px 50px -24px rgba(11, 42, 111, .7);
}
.wb-feat:hover h3 a, .wb-feat.f-velocidad:hover h3 a, .wb-feat:focus-within h3 a { color: var(--wb-limec) !important; }
.wb-feat:hover p, .wb-feat.f-velocidad:hover p, .wb-feat:focus-within p { color: rgba(255, 255, 255, .86) !important; }
.wb-feat h3 a, .wb-feat p { transition: color .3s ease; }

/* La escena 3D se agranda */
.wb-feat .wb-mini { transition: transform .6s var(--wb-ease); }
.wb-feat:hover .wb-mini { transform: scale(1.07) translateY(-4px); }

/* Boton con flecha en la esquina */
.wb-feat::after {
	content: "";
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	pointer-events: none;
	background: var(--wb-limec) no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2A6F' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E");
	transform: scale(0) rotate(-90deg);
	transition: transform .45s var(--wb-ease);
}
.wb-feat:hover::after, .wb-feat:focus-within::after { transform: scale(1) rotate(0deg); }

/* Entrada en cascada (solo con JS) */
.wb-feats.wb-feats-anim .wb-feat { opacity: 0; translate: 0 48px; rotate: -4deg; }
.wb-feats.wb-feats-anim.is-in .wb-feat { opacity: 1; translate: 0 0; rotate: 0deg; }
.wb-feats.wb-feats-anim .wb-feat:nth-child(2) { transition-delay: 0s, 0s, 0s, 0s, .08s, .08s, .08s; }
.wb-feats.wb-feats-anim .wb-feat:nth-child(3) { transition-delay: 0s, 0s, 0s, 0s, .16s, .16s, .16s; }
.wb-feats.wb-feats-anim .wb-feat:nth-child(4) { transition-delay: 0s, 0s, 0s, 0s, .24s, .24s, .24s; }
.wb-feats.wb-feats-anim .wb-feat:nth-child(5) { transition-delay: 0s, 0s, 0s, 0s, .32s, .32s, .32s; }

@media (prefers-reduced-motion: reduce) {
	.wb-feat, .wb-feat.is-tracking { transition: background-color .2s, border-color .2s; transform: none !important; }
	.wb-feat:hover .wb-mini { transform: none; }
	.wb-feats.wb-feats-anim .wb-feat { opacity: 1; translate: none; rotate: none; }
}

/* ---------- Tarjetas con espesor (3D) ---------- */
.wb-feat, .wb-type, .wb-mgroup, .wb-form-panel {
	box-shadow: 0 8px 0 0 #0B2A6F, 0 30px 40px -26px rgba(11, 42, 111, .65) !important;
}
.wb-feat:hover, .wb-feat:focus-within, .wb-feat.f-velocidad:hover {
	box-shadow: 0 14px 0 0 #051640, 0 46px 50px -28px rgba(11, 42, 111, .8) !important;
}
.wb-feat:active { --lift: 2px; }
.wb-feat:active, .wb-feat.f-velocidad:active { box-shadow: 0 3px 0 0 #051640, 0 14px 22px -16px rgba(11, 42, 111, .7) !important; }
.wb-type, .wb-mgroup {
	--rx: 0deg; --ry: 0deg; --lift: 0px;
	transform: perspective(1100px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform .55s cubic-bezier(.2, .8, .2, 1), box-shadow .45s cubic-bezier(.2, .8, .2, 1), border-color .3s ease;
}
.wb-type.is-tracking, .wb-mgroup.is-tracking { transition: transform .12s linear, box-shadow .45s cubic-bezier(.2, .8, .2, 1), border-color .3s ease; }
.wb-type:hover, .wb-mgroup:hover { --lift: -6px; box-shadow: 0 14px 0 0 #0B2A6F, 0 46px 50px -28px rgba(11, 42, 111, .75) !important; }
.wb-type:active, .wb-mgroup:active { --lift: 3px; box-shadow: 0 3px 0 0 #0B2A6F, 0 14px 22px -16px rgba(11, 42, 111, .6) !important; }
.wb-type.wb-weighted, .wb-mgroup.wb-weighted { --lift: 4px; --rx: -2deg; transform: perspective(1100px) translateY(var(--lift)) rotateX(var(--rx)) rotateY(var(--ry)) !important; box-shadow: 0 4px 0 0 #0B2A6F, 0 18px 26px -18px rgba(11, 42, 111, .6) !important; }
.wb-feat.wb-weighted { box-shadow: 0 4px 0 0 #051640, 0 18px 26px -18px rgba(11, 42, 111, .6) !important; }
@media (prefers-reduced-motion: reduce) {
	.wb-type, .wb-mgroup, .wb-type.is-tracking, .wb-mgroup.is-tracking { transform: none !important; transition: box-shadow .2s; }
}