/* ==========================================================================
   Home Vale Network — prototipo de dirección visual.
   Paleta y tipografía: PROPUESTA propia en espera de guías gráficas Vale 2026.
   Solo se animan transform/opacity (presupuesto de performance §7.5).
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 100 900;
	font-display: swap;
}

:root {
	/* Tokens de marca (--ink, --rojo, --acento-1/2/3, …) viven en style.css :root
	   para que los compartan todos los landings. Aquí solo la escala fluida propia
	   del hero de la home. Ver docs/identidad-visual.md. */
	--fluid-1: clamp(2.6rem, 7.5vw, 6.5rem);
	--fluid-2: clamp(1.8rem, 4.5vw, 3.6rem);
	--pad: clamp(1.25rem, 4vw, 4rem);
}

/* ---- lienzo oscuro + header de GP integrado ---- */
body.home {
	background: var(--ink);
	color: var(--paper);
	font-family: "Archivo", system-ui, sans-serif;
}
body.home .site-header {
	background: transparent;
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 50;
}
body.home .site-header .inside-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	background: transparent;
	padding: 1.5rem var(--pad);
	max-width: none;
}
body.home .main-title {
	margin: 0;
	font-weight: 850;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}
body.home #site-navigation,
body.home .main-navigation {
	background: transparent;
	float: none;
}
body.home .main-navigation .main-nav ul li a {
	color: var(--paper);
	font-weight: 600;
}
body.home .site-content {
	padding: 0;
}
body.home .main-navigation a,
body.home .main-title a,
body.home .menu-toggle {
	color: var(--paper);
}
body.home .site-content,
body.home .site-footer {
	background: var(--ink);
}
#vale-home {
	overflow-x: clip;
}
#vale-home section {
	padding: clamp(4rem, 10vh, 8rem) var(--pad);
}
#vale-home h2 {
	font-size: var(--fluid-2);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.05;
	color: var(--paper);
	margin: 0 0 1rem;
}

/* ---- estado inicial de reveals (JS los anima; sin JS quedan visibles) ---- */
html.vale-js .reveal {
	opacity: 0;
	transform: translateY(28px);
}
@media (prefers-reduced-motion: reduce) {
	html.vale-js .reveal {
		opacity: 1;
		transform: none;
	}
}

/* ==================== HERO ==================== */
/* ==================== SHOWCASE SLIDER (hero) ==================== */
.vshow {
	position: relative;
	min-height: 100svh;
	overflow: hidden;
	isolation: isolate;
}
.vshow__viewport {
	position: absolute;
	inset: 0;
}
/* Cada banner ocupa todo el viewport; transición por opacity (no dispara layout). */
.vshow__panel {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}
.vshow__panel.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.9s ease;
}
.vshow__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	/* Placeholder hasta recibir los banners reales: degradado por acento de marca. */
	background-color: var(--ink);
	background-image:
		radial-gradient(120% 120% at 75% 15%, color-mix(in srgb, var(--acento) 55%, transparent) 0%, transparent 55%),
		linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
	transform: scale(1.06);
}
.vshow__panel.is-active .vshow__media {
	transition: transform 6s ease-out;
	transform: scale(1);
}
.vshow__velo {
	position: absolute;
	inset: 0;
	/* Doble velo: oscurece abajo (título del banner) e izquierda (claim) para que
	   el texto blanco domine sobre los banners fotográficos reales, dejando
	   respirar el arte a la derecha. */
	background:
		linear-gradient(to top, rgb(10 10 10 / 0.92) 0%, rgb(10 10 10 / 0.45) 50%, rgb(10 10 10 / 0.65) 100%),
		linear-gradient(to right, rgb(10 10 10 / 0.78) 0%, rgb(10 10 10 / 0.2) 55%, transparent 100%);
}
.vshow__texto {
	position: absolute;
	left: var(--pad);
	bottom: clamp(7rem, 16vh, 12rem);
	z-index: 2;
	max-width: 46rem;
}
.vshow__cliente {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--acento);
}
.vshow__titulo {
	margin: 0;
	font-size: var(--fluid-2);
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.02em;
	color: var(--paper);
	text-wrap: balance;
}
/* Marca + claim fijos sobre el slider (el isotipo "V" provisional, sustituible por el SVG). */
.vshow__marca {
	position: absolute;
	left: var(--pad);
	top: clamp(5rem, 14vh, 9rem);
	z-index: 3;
	max-width: 60rem;
}
.vshow__logo {
	display: inline-block;
	font-weight: 900;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1;
	color: var(--rojo);
	transform: scaleY(1.15);
}
.vshow__claim {
	font-size: var(--fluid-1);
	font-weight: 850;
	line-height: 0.98;
	letter-spacing: -0.03em;
	margin: 0.5rem 0 0;
	color: var(--paper);
	text-wrap: balance;
}
.vshow__claim .palabra { display: inline-block; }

/* Controles */
.vshow__controles {
	position: absolute;
	right: var(--pad);
	bottom: var(--pad);
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.vshow__flecha {
	width: 3rem;
	height: 3rem;
	border-radius: 999px;
	border: 1px solid rgb(255 255 255 / 0.35);
	background: rgb(10 10 10 / 0.25);
	color: var(--paper);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease;
}
.vshow__flecha:hover,
.vshow__flecha:focus-visible {
	background: var(--rojo);
	border-color: var(--rojo);
}
.vshow__puntos {
	display: flex;
	gap: 0.6rem;
}
.vshow__punto {
	width: 2.25rem;
	height: 3px;
	border: 0;
	padding: 0;
	background: rgb(255 255 255 / 0.3);
	cursor: pointer;
	transition: background 0.25s ease;
}
.vshow__punto.is-active { background: var(--rojo); }
.vshow__punto:focus-visible { outline: 2px solid var(--acento-1); outline-offset: 3px; }

.vshow__scroll {
	position: absolute;
	z-index: 4;
	left: 50%;
	transform: translateX(-50%);
	bottom: var(--pad);
	width: 2.75rem;
	height: 4rem;
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: 999px;
	display: grid;
	place-items: center;
}
.vshow__scroll span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--paper);
	animation: vale-gota 1.8s ease-in-out infinite;
}
@keyframes vale-gota {
	0%, 100% { transform: translateY(-8px); opacity: 0.4; }
	50% { transform: translateY(8px); opacity: 1; }
}
/* Estado estático digno: sin animación de zoom ni de gota; primer banner visible. */
@media (prefers-reduced-motion: reduce) {
	.vshow__scroll span { animation: none; }
	.vshow__panel.is-active .vshow__media { transition: none; transform: scale(1); }
	.vshow__panel { transition: opacity 0.2s linear; }
}
@media (max-width: 600px) {
	.vshow__controles { left: var(--pad); right: var(--pad); justify-content: space-between; }
	.vshow__scroll { display: none; }
}

/* ==================== STATS ==================== */
.vs__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 2rem;
	border-top: 1px solid rgb(245 243 239 / 0.12);
	padding-top: 3rem;
}
.vs__numero {
	display: block;
	font-size: clamp(3rem, 7vw, 5.5rem);
	font-weight: 850;
	letter-spacing: -0.03em;
	line-height: 1;
	color: var(--paper);
	font-variant-numeric: tabular-nums;
}
.vs__etiqueta {
	display: block;
	margin-top: 0.5rem;
	color: var(--gris);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

/* ==================== HUBS ==================== */
.vhub__head p {
	color: var(--gris);
	font-size: 1.1rem;
}
.vhub__head em {
	font-style: normal;
	color: var(--rojo);
}
.vhub__lista {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
	gap: 1px;
	background: rgb(245 243 239 / 0.12);
	border-block: 1px solid rgb(245 243 239 / 0.12);
	margin-top: 2.5rem;
}
.vhub__item {
	--hub: var(--rojo);
	position: relative;
	display: block;
	background: var(--ink);
	padding: 2.5rem 1.75rem 3.5rem;
	text-decoration: none;
	transition: background-color 0.35s ease;
	overflow: hidden;
}
.vhub__item::before {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 4px;
	background: var(--hub);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.vhub__item:hover { background: var(--ink-2); }
.vhub__item:hover::before { transform: scaleX(1); }
/* Acentos por bloque: rojo primario + paleta CMYK secundaria (Vale 2026). */
.vhub__item--thinkers-hub { --hub: var(--acento-1); }
.vhub__item--media-hub { --hub: var(--acento-2); }
.vhub__item--creative-hub { --hub: var(--rojo); }
.vhub__item--experience-hub { --hub: var(--acento-3); }
.vhub__num {
	font-size: 0.9rem;
	color: var(--hub);
	font-weight: 700;
	letter-spacing: 0.15em;
}
.vhub__nombre {
	font-size: 1.6rem;
	font-weight: 800;
	color: var(--paper);
	margin: 0.75rem 0 0.75rem;
	letter-spacing: -0.01em;
}
.vhub__desc {
	color: var(--gris);
	line-height: 1.55;
	font-size: 0.98rem;
	margin: 0;
}
.vhub__flecha {
	position: absolute;
	right: 1.75rem;
	bottom: 1.5rem;
	color: var(--hub);
	font-size: 1.3rem;
	transform: translateX(-6px);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.vhub__item:hover .vhub__flecha {
	transform: translateX(0);
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	.vhub__item, .vhub__item::before, .vhub__flecha { transition: none; }
	.vhub__flecha { opacity: 1; transform: none; }
}

/* ==================== PORTAFOLIO ==================== */
.vp__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
}
.vp__todo {
	color: var(--paper);
	text-decoration: none;
	border-bottom: 1px solid var(--rojo);
	padding-bottom: 2px;
	font-weight: 600;
}
.vp__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: clamp(1rem, 2.5vw, 2rem);
	margin-top: 2.5rem;
}
.vp__card { text-decoration: none; }
.vp__card--xl { grid-column: span 2; }
@media (min-width: 768px) {
	.vp__card--xl { grid-column: span 1; grid-row: span 2; }
	.vp__grid { grid-template-columns: 3fr 2fr; }
}
.vp__media {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	border-radius: 6px;
	background: var(--ink-2);
}
.vp__card--xl .vp__media { aspect-ratio: 4 / 5; }
@media (max-width: 767px) {
	.vp__card--xl .vp__media { aspect-ratio: 16 / 10; }
}
.vp__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.vp__card:hover .vp__media img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
	.vp__media img { transition: none; }
	.vp__card:hover .vp__media img { transform: none; }
}
.vp__meta { padding: 1rem 0.25rem 0; }
.vp__cliente {
	color: var(--rojo);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.vp__titulo {
	color: var(--paper);
	font-size: 1.35rem;
	font-weight: 750;
	margin: 0.3rem 0;
	letter-spacing: -0.01em;
}
.vp__tags {
	color: var(--gris);
	font-size: 0.9rem;
}

/* ==================== TESTIMONIOS ==================== */
.vt { background: var(--ink-2); }
.vt__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
.vt__hint { color: var(--gris); }
.vt__carril {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 2rem 0 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--rojo) transparent;
}
.vt__card {
	flex: 0 0 min(85%, 34rem);
	scroll-snap-align: start;
	margin: 0;
	background: var(--ink);
	border: 1px solid rgb(245 243 239 / 0.08);
	border-radius: 8px;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 1.5rem;
}
.vt__cita {
	margin: 0;
	border: 0;
	padding: 0;
	background: none;
	font-size: 1.1rem;
	line-height: 1.55;
	color: var(--paper);
}
.vt__firma strong {
	display: block;
	color: var(--paper);
}
.vt__firma span {
	color: var(--gris);
	font-size: 0.9rem;
}

/* ==================== MARQUEE LOGOS ==================== */
.vl { padding-inline: 0 !important; }
.vl__titulo {
	text-align: center;
	padding-inline: var(--pad);
}
.vl__marquee {
	display: flex;
	overflow: hidden;
	margin-top: 2.5rem;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.vl__grupo {
	display: flex;
	align-items: center;
	gap: clamp(3rem, 6vw, 5.5rem);
	padding-right: clamp(3rem, 6vw, 5.5rem);
	flex-shrink: 0;
	animation: vale-marquee 38s linear infinite;
}
.vl__marquee--der .vl__grupo {
	animation-direction: reverse;
	animation-duration: 46s;
}
.vl__marquee:hover .vl__grupo { animation-play-state: paused; }
.vl__grupo img {
	height: clamp(72px, 7.5vw, 110px);
	width: auto;
	max-width: 250px;
	object-fit: contain;
	opacity: 1;
}
@keyframes vale-marquee {
	to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
	.vl__grupo { animation: none; flex-wrap: wrap; justify-content: center; }
	.vl__marquee { mask-image: none; -webkit-mask-image: none; }
	.vl__grupo[aria-hidden="true"] { display: none; }
}

/* ==================== PREMIOS ==================== */
.vpr { background: var(--paper); text-align: center; }
/* Banda blanca: el h2 debe ser oscuro. Lleva id porque #vale-home h2 (blanco)
   le gana por especificidad y dejaba el título blanco-sobre-blanco (invisible). */
#vale-home .vpr h2 { color: var(--ink); }
.vpr__lockup {
	margin: 2.5rem auto 0;
	max-width: 920px;
}
.vpr__lockup img {
	width: 100%;
	height: auto;
	display: block;
}
@media (max-width: 600px) {
	/* El lockup es una franja horizontal: dentro del padding de sección los
	   reconocimientos quedan diminutos en móvil. Lo sangramos casi a todo el
	   ancho para que se lean. (#vale-home section gana en especificidad, por eso
	   el selector con id.) */
	#vale-home .vpr { padding-inline: clamp(0.5rem, 3vw, 1rem); }
	.vpr__lockup { max-width: none; margin-top: 1.75rem; }
}

/* ==================== CTA — cierre rojo de marca ==================== */
/* La página termina dueña del rojo primario: el único bloque saturado del home.
   Negro tinta sobre rojo = registro de cartel. La "V" gigante de marca de agua
   es la firma; lo demás queda disciplinado. */
.vc {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
	background-color: var(--rojo);
	background-image:
		radial-gradient(120% 140% at 50% -15%, color-mix(in srgb, var(--rojo) 78%, #fff) 0%, transparent 55%),
		linear-gradient(180deg, var(--rojo) 0%, #c50f16 100%);
}
#vale-home .vc { padding-block: clamp(7rem, 20vh, 13rem); }
.vc__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
}
.vc__ghost {
	font-weight: 900;
	font-size: clamp(20rem, 58vw, 56rem);
	line-height: 0.75;
	color: rgb(0 0 0 / 0.07);
	transform: scaleY(1.15) translateY(4%);
	user-select: none;
}
.vc__inner { position: relative; z-index: 1; }
.vc__eyebrow {
	margin: 0 0 1.25rem;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: rgb(10 10 10 / 0.72);
}
#vale-home .vc__grande {
	max-width: 16ch;
	margin: 0 auto;
	/* Tope con 8vw para que NUNCA desborde horizontalmente. */
	font-size: clamp(2.6rem, 8vw, 6rem);
	font-weight: 850;
	letter-spacing: -0.03em;
	line-height: 0.98;
	color: var(--ink);
	text-wrap: balance;
	overflow-wrap: break-word;
}
.vc__intro {
	max-width: 36rem;
	margin: 1.5rem auto 0;
	font-size: 1.08rem;
	line-height: 1.5;
	color: rgb(10 10 10 / 0.82);
}
.vc__accion {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 2.25rem;
	background: var(--ink);
	color: #fff;
	font-weight: 800;
	font-size: 1.1rem;
	text-decoration: none;
	padding: 1.05rem 2.6rem;
	border-radius: 999px;
	transition: transform 0.25s ease, background-color 0.25s ease;
}
.vc__accion span { transition: transform 0.25s ease; }
.vc__accion:hover, .vc__accion:focus-visible { transform: translateY(-2px); background: #000; }
.vc__accion:hover span, .vc__accion:focus-visible span { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
	.vc__accion, .vc__accion span { transition: none; }
}
