/* =========================================================
   V&J Works Studio — comunicación directa y visual
   Alcance: portada (body.vj-home) y Servicios (body.vj-page).
   Cargado solo en esas dos páginas. No afecta a /designs/ ni a las demos.
   ========================================================= */

/* ---------- Portada: presentación del estudio (mensaje breve y contundente) ---------- */
.vj-home .intro-lead {
	font-size: clamp(1.8rem, 3.9vw, 3.3rem);
	line-height: 1.16;
	letter-spacing: -0.02em;
	max-width: 24em;
}

/* ---------- Portada: servicios en cinco filas con ejemplo visual ---------- */
.vj-home .invert-band .rule-row {
	align-items: center;
	gap: clamp(1rem, 2.4vw, 2.2rem);
}
.vj-home .invert-band .rule-desc {
	max-width: 34ch;
	font-size: 1rem;
	line-height: 1.5;
}
.vj-home .invert-band .rule-thumb {
	position: relative;
	flex: 0 0 clamp(9rem, 14vw, 13rem);
	aspect-ratio: 16 / 10;
	display: block;
	margin: 0;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: #1a1a1a;
}
.vj-home .invert-band .rule-thumb img {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: auto;
	transform: translateY(calc(var(--y0, 0%) * -1));
	transition: transform 1400ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.vj-home .invert-band .rule-pal {
	display: flex;
}
.vj-home .invert-band .rule-pal i {
	flex: 1;
	display: block;
}
.vj-home .invert-band .rule-link {
	flex: 0 0 auto;
	min-width: 11rem;
	margin: 0;
	text-align: right;
}
.vj-home .invert-band .rule-link a,
.vj-home .band-link a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--paper, #fff);
	text-decoration: none;
	border: 0;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 calc(100% - 9px);
	background-size: 0% 1px;
	transition: background-size 380ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.vj-home .invert-band .rule-link a::after,
.vj-home .band-link a::after {
	content: "→";
	transition: transform 260ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.vj-home .invert-band a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
	.vj-home .invert-band .rule-link a:hover,
	.vj-home .band-link a:hover { background-size: 100% 1px; }
	.vj-home .invert-band .rule-link a:hover::after,
	.vj-home .band-link a:hover::after { transform: translateX(0.35rem); }
	.vj-home .invert-band .rule-row:hover .rule-thumb img {
		transform: translateY(calc((var(--y0, 0%) + 22%) * -1));
	}
}
@media (max-width: 781px) {
	.vj-home .invert-band .rule-row {
		align-items: flex-start;
		gap: 0.9rem;
	}
	.vj-home .invert-band .rule-thumb {
		flex: none;
		width: 100%;
		max-width: 22rem;
	}
	.vj-home .invert-band .rule-link {
		min-width: 0;
		text-align: left;
	}
}

/* ---------- Portada: por qué confiar ---------- */
.vb-proof-list {
	list-style: none;
	margin: clamp(2rem, 4vw, 3rem) 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(1.5rem, 3vw, 3rem);
}
.vb-proof-list li {
	padding-top: 1.2rem;
	border-top: 1px solid var(--ink, #0a0a0a);
}
.vb-proof-list b {
	display: block;
	margin-bottom: 0.8rem;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.7rem;
	font-weight: 500;
	letter-spacing: 0.2em;
	color: var(--mid, #6e6e6e);
}
.vb-proof-list h3 {
	margin: 0 0 0.6rem;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.015em;
}
.vb-proof-list p {
	margin: 0;
	max-width: 30ch;
	line-height: 1.55;
	color: var(--mid, #6e6e6e);
}
@media (max-width: 781px) {
	.vb-proof-list { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- Servicios: cinco servicios, cada uno con ejemplo visual ---------- */
.vb-svc {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: center;
	gap: clamp(1.5rem, 4vw, 4rem);
	padding-block: clamp(2.6rem, 6vw, 5rem);
	border-top: 1px solid var(--rule, rgba(10, 10, 10, 0.14));
	scroll-margin-top: 6rem;
}
.vb-svc:first-child { border-top: 0; }
.vb-svc-txt { grid-column: 1 / span 5; grid-row: 1; min-width: 0; }
.vb-svc > figure,
.vb-svc > .vb-ident { grid-column: 6 / span 7; grid-row: 1; min-width: 0; }
.vb-svc:nth-child(even) .vb-svc-txt { grid-column: 8 / span 5; }
.vb-svc:nth-child(even) > figure,
.vb-svc:nth-child(even) > .vb-ident { grid-column: 1 / span 7; }
.vb-svc-n {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(2.6rem, 5vw, 4.4rem);
	line-height: 0.9;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 1px var(--ink, #0a0a0a);
}
.vb-svc-h {
	margin: 0 0 1rem;
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: clamp(1.9rem, 3.8vw, 3.2rem);
	font-weight: 400;
	line-height: 1.04;
	letter-spacing: -0.025em;
}
.vb-svc-d {
	margin: 0 0 1.4rem;
	max-width: 28ch;
	font-size: 1.12rem;
	line-height: 1.5;
	color: var(--mid, #6e6e6e);
}
.vb-svc-a {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 44px;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ink, #0a0a0a);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-repeat: no-repeat;
	background-position: 0 calc(100% - 9px);
	background-size: 0% 1px;
	transition: background-size 380ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.vb-svc-a::after {
	content: "→";
	transition: transform 260ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.vb-svc-a:focus-visible { outline: 2px solid var(--ink, #0a0a0a); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
	.vb-svc-a:hover { background-size: 100% 1px; }
	.vb-svc-a:hover::after { transform: translateX(0.35rem); }
}

/* Composición navegador + teléfono (capturas reales) */
.vb-shot {
	position: relative;
	margin: 0;
	container-type: inline-size;
	padding-bottom: 6cqw;
}
.vb-win {
	width: 88%;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d3d3d3;
	border-radius: 1.1cqw;
	box-shadow: 0 4cqw 6cqw -3cqw rgba(10, 10, 10, 0.4);
}
.vb-win-bar {
	display: flex;
	align-items: center;
	gap: 1.2cqw;
	padding: 1.1cqw 1.8cqw;
	background: var(--paper, #fff);
	border-bottom: 1px solid #e6e6e6;
}
.vb-win-bar::before {
	content: "";
	flex: none;
	width: 5cqw;
	height: 1.1cqw;
	background:
		radial-gradient(circle at 0.7cqw 0.55cqw, #d6d6d6 0 0.4cqw, transparent 0.5cqw),
		radial-gradient(circle at 2.5cqw 0.55cqw, #d6d6d6 0 0.4cqw, transparent 0.5cqw),
		radial-gradient(circle at 4.3cqw 0.55cqw, #d6d6d6 0 0.4cqw, transparent 0.5cqw);
}
.vb-win-bar span {
	flex: 1;
	min-width: 0;
	padding: 0.5cqw 1.5cqw;
	background: #f1f1f1;
	border-radius: 999px;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: max(0.56rem, 1.05cqw);
	font-weight: 500;
	color: var(--mid, #6e6e6e);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.vb-win-scr {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #ececec;
}
.vb-win-scr img {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100%;
	height: auto;
	transform: translateY(calc(var(--y0, 0%) * -1));
	transition: transform 3200ms cubic-bezier(0.45, 0, 0.2, 1);
}
.vb-ph {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 21%;
	aspect-ratio: 9 / 18.4;
	padding: 0.9cqw;
	background: #111;
	border-radius: 3.2cqw;
	box-shadow: 0 3cqw 5cqw -2.5cqw rgba(10, 10, 10, 0.6);
}
.vb-ph-s {
	position: relative;
	height: 100%;
	overflow: hidden;
	background: #ececec;
	border-radius: 2.4cqw;
}
.vb-ph-s img {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100%;
	height: auto;
}
@media (hover: hover) and (pointer: fine) {
	.vb-svc:hover .vb-win-scr img {
		transform: translateY(calc((var(--y0, 0%) + 40%) * -1));
	}
}

/* Identidad: las paletas y tipografías reales de las demos */
.vb-ident {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(0.8rem, 1.6vw, 1.4rem);
}
.vb-id {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.9rem;
	border: 1px solid var(--rule, rgba(10, 10, 10, 0.14));
	color: var(--ink, #0a0a0a);
	text-decoration: none;
	background: var(--paper, #fff);
	transition: border-color 240ms ease, transform 300ms cubic-bezier(0.22, 0.8, 0.24, 1);
}
.vb-id-sw { display: flex; height: clamp(2.6rem, 6cqw, 4.2rem); margin-bottom: 0.5rem; }
.vb-id-sw i { flex: 1; display: block; }
.vb-id b {
	font-family: var(--wp--preset--font-family--fraunces);
	font-size: 1.3rem;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.vb-id em {
	font-style: normal;
	font-family: var(--wp--preset--font-family--archivo);
	font-size: 0.64rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mid, #6e6e6e);
}
.vb-id:focus-visible { outline: 2px solid var(--ink, #0a0a0a); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	.vb-id:hover { border-color: var(--ink, #0a0a0a); transform: translateY(-3px); }
}

@media (max-width: 900px) {
	.vb-svc { grid-template-columns: 1fr; gap: 1.6rem; }
	.vb-svc-txt,
	.vb-svc:nth-child(even) .vb-svc-txt { grid-column: 1; grid-row: 1; }
	.vb-svc > figure,
	.vb-svc > .vb-ident,
	.vb-svc:nth-child(even) > figure,
	.vb-svc:nth-child(even) > .vb-ident { grid-column: 1; grid-row: 2; }
	.vb-svc-d { max-width: 34ch; }
}

@media (prefers-reduced-motion: reduce) {
	.vj-home .invert-band .rule-thumb img,
	.vb-win-scr img,
	.vb-svc-a,
	.vb-svc-a::after,
	.vb-id,
	.vj-home .invert-band .rule-link a,
	.vj-home .invert-band .rule-link a::after {
		transition: none !important;
	}
}

/* Las filas de servicio necesitan más ancho que la columna de lectura (720px):
   número · título y frase · captura · enlace en una sola línea. */
.vj-home .invert-band .band-head,
.vj-home .invert-band .rule-list {
	max-width: min(1240px, 100%) !important;
	width: 100%;
	margin-inline: auto !important;
}
.vj-home .invert-band .rule-list > .rule-row {
	max-width: none !important;
	margin-inline: 0 !important;
}
.vj-home .invert-band .rule-txt {
	flex: 1 1 18rem;
	min-width: 0;
}
.vj-home .invert-band .rule-title {
	font-size: clamp(1.6rem, 3vw, 2.5rem);
	margin-bottom: 0.4rem;
}
.vj-home .vb-proof .vb-proof-list,
.vj-home .vb-proof > .wp-block-group > * {
	max-width: min(1240px, 100%);
}
.vj-home .invert-band .rule-link { flex: 0 0 13.5rem; min-width: 0; }
.vj-home .invert-band .rule-list > .rule-row { padding-block: 1.5rem; }
.vj-home .invert-band .rule-txt { gap: 0.3rem; }
@media (max-width: 781px) {
	.vj-home .invert-band .rule-link { flex: none; }
}

/* Mismo borde izquierdo (retícula de 1240px) para presentación, servicios y confianza. */
.vj-home .intro > .wp-block-group,
.vj-home .vb-proof > .wp-block-group {
	max-width: min(1240px, 100%);
	margin-inline: auto;
}
.vj-home .intro > .wp-block-group > *,
.vj-home .vb-proof > .wp-block-group > * {
	margin-left: 0 !important;
	margin-right: 0 !important;
}
.vj-home .intro > .wp-block-group > .intro-lead { max-width: 24em; }
.vj-home .intro > .wp-block-group,
.vj-home .vb-proof > .wp-block-group {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.vj-home .intro > .wp-block-group,
.vj-home .vb-proof > .wp-block-group {
	max-width: none;
	width: min(1240px, calc(100% - 2 * var(--vj3-gut, 1.5rem)));
}
.vj-home .intro > .wp-block-group,
.vj-home .vb-proof > .wp-block-group {
	width: min(1240px, calc(100% - var(--wp--style--root--padding-left, 3rem) - var(--wp--style--root--padding-right, 3rem)));
}

/* Cabecera móvil: marca y botón de menú caben en una fila. */
@media (max-width: 480px) {
	.site-header .site-brand .wp-block-site-title { font-size: 1.3rem; white-space: nowrap; }
	.site-header .site-brand { flex: 0 1 auto; min-width: 0; }
}
@media (max-width: 781px) {
	.vj-home .invert-band .rule-txt { flex: none; }
	.vj-home .invert-band .rule-thumb { max-width: 16rem; }
	.vj-home .invert-band .rule-list > .rule-row { padding-block: 1.6rem; }
}

/* Rendimiento: las secciones bajo la galería no se pintan hasta que se acercan. */
.vj-home .method,
.vj-home .vb-proof,
.vj-home .cta-band {
	content-visibility: auto;
	contain-intrinsic-size: auto 700px;
}
