/* ==========================================================================
   Juan Conesa — "la película"
   Escenas: hero · guion · cifras · trayectoria · reels · investigación ·
   backstage · reparto · herramientas · contacto · créditos
   ========================================================================== */

/* Versión estática sin contornos solapados: para textos en outline */
@font-face { font-family: "Bricolage Outline"; src: url(../fonts/bricolage-outline-latin.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Bricolage Outline"; src: url(../fonts/bricolage-outline-latin-ext.woff2) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+2020,U+20A0-20AB,U+20AD-20C0; }

:root {
	--jc-black: #07070a;
	--jc-ink: #15151c;
	--jc-paper: #f3f1ec;
	--jc-blue: #0012ff;
	--jc-fuc: #ff00b8;
	--jc-mist: #9a9aa6;
	--jc-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", sans-serif);
	--jc-outline: "Bricolage Outline", var(--jc-display);
	--jc-text: var(--wp--preset--font-family--texto, Inter, sans-serif);
	--jc-pad: clamp(20px, 4vw, 56px);
	--jc-ease: cubic-bezier(.2, .7, .1, 1);
}

body.jc {
	--bg: var(--jc-black);
	--fg: var(--jc-paper);
	--accent: var(--jc-fuc);
	--line: rgba(243, 241, 236, .18);
	--jc-bracket: var(--jc-blue);
	--jc-rec: var(--jc-fuc);
	background: var(--bg);
	color: var(--fg);
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	transition: background-color .8s var(--jc-ease), color .8s var(--jc-ease);
}
body.jc[data-bg="blue"] { --bg: var(--jc-blue); --fg: #fff; --accent: #fff; --line: rgba(255,255,255,.3); --jc-bracket: #fff; }
body.jc[data-bg="light"] { --bg: var(--jc-paper); --fg: var(--jc-black); --accent: var(--jc-blue); --line: rgba(7,7,10,.16); }
body.jc[data-bg="fucsia"] { --bg: var(--jc-fuc); --fg: var(--jc-black); --accent: var(--jc-black); --line: rgba(7,7,10,.25); --jc-bracket: var(--jc-black); --jc-rec: var(--jc-black); }

/* Sin JS: cada escena pinta su propio fondo */
html:not(.jc-js) .jc-bg-blue { --fg: #fff; --accent: #fff; --line: rgba(255,255,255,.3); background: var(--jc-blue); color: #fff; }
html:not(.jc-js) .jc-bg-light { --fg: var(--jc-black); --accent: var(--jc-blue); --line: rgba(7,7,10,.16); background: var(--jc-paper); color: var(--jc-black); }
html:not(.jc-js) .jc-bg-fucsia { --fg: var(--jc-black); --accent: var(--jc-black); --line: rgba(7,7,10,.25); background: var(--jc-fuc); color: var(--jc-black); }

.jc ::selection { background: var(--jc-fuc); color: var(--jc-black); }

/* Reset de márgenes del layout "flow" dentro de la historia */
.jc .jc-story,
.jc .jc-story .wp-block-post-content { margin: 0; padding: 0; max-width: none; }
.jc .jc-story :where(.wp-block-group, p, h1, h2, h3, figure, .wp-block-buttons) { margin-block: 0; }
.jc .jc-story img { display: block; max-width: 100%; height: auto; }
.jc .jc-story figure { margin-inline: 0; }
.jc .jc-story a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.jc .jc-story a:hover { color: var(--accent); }
.jc .jc-story a:focus-visible,
.jc .jc-hud a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* ---------- Tipografía común ---------- */

.jc .jc-eyebrow {
	display: flex;
	align-items: center;
	gap: .7em;
	font: 600 12px/1.2 var(--jc-text);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: clamp(18px, 3vh, 28px);
	transition: color .8s var(--jc-ease);
}
.jc .jc-eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex: none;
}

.jc .jc-title,
.jc .jc-contact__title,
.jc .jc-credits__title {
	font-family: var(--jc-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(44px, 7vw, 124px);
	line-height: .9;
	letter-spacing: -.012em;
	text-wrap: balance;
	max-width: 16ch;
}
.jc .jc-title--xl { font-size: clamp(52px, 9.4vw, 176px); max-width: 15ch; }

.jc .jc-lead {
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.5;
	max-width: 46ch;
	opacity: .82;
	margin-top: clamp(18px, 3vh, 32px);
}

.jc .jc-head { margin-bottom: clamp(48px, 9vh, 110px); }

/* ---------- Escenas ---------- */

.jc .jc-scene {
	position: relative;
	padding: clamp(96px, 16vh, 190px) var(--jc-pad);
}

/* ==========================================================================
   00 · HERO
   ========================================================================== */

.jc .jc-hero {
	min-height: 100svh;
	padding-top: clamp(96px, 14vh, 130px);
	padding-bottom: 40px;
	overflow: hidden;
	isolation: isolate;
}
.jc .jc-hero__stage { position: absolute; inset: 0; z-index: -1; }

.jc .jc-hero__photo {
	position: absolute;
	right: 7vw;
	top: 50%;
	height: min(78vh, 820px);
	aspect-ratio: 4 / 5;
	translate: 0 -50%;
}
.jc .jc-hero__photo::before {
	content: "";
	position: absolute;
	inset: -18%;
	z-index: -1;
	background:
		radial-gradient(closest-side at 25% 35%, rgba(0, 18, 255, .75), transparent),
		radial-gradient(closest-side at 80% 70%, rgba(255, 0, 184, .6), transparent);
	filter: blur(40px);
	animation: jc-breathe 8s ease-in-out infinite alternate;
}
.jc .jc-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
}
.jc .jc-hero__photo::after {
	/* Esquinas de visor, como el logo */
	content: "";
	position: absolute;
	inset: -14px;
	pointer-events: none;
	--c: var(--jc-bracket);
	background:
		linear-gradient(var(--c), var(--c)) top left / 44px 4px,
		linear-gradient(var(--c), var(--c)) top left / 4px 44px,
		linear-gradient(var(--c), var(--c)) top right / 44px 4px,
		linear-gradient(var(--c), var(--c)) top right / 4px 44px,
		linear-gradient(var(--c), var(--c)) bottom left / 44px 4px,
		linear-gradient(var(--c), var(--c)) bottom left / 4px 44px,
		linear-gradient(var(--c), var(--c)) bottom right / 44px 4px,
		linear-gradient(var(--c), var(--c)) bottom right / 4px 44px;
	background-repeat: no-repeat;
}

.jc .jc-hero__name {
	position: absolute;
	left: var(--jc-pad);
	bottom: 36px;
	z-index: 2;
	margin: 0;
	font-family: var(--jc-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: min(17.5vw, 27vh);
	line-height: .8;
	letter-spacing: -.02em;
	text-transform: uppercase;
	color: var(--fg);
}
.jc .jc-hero__name em {
	font-style: normal;
	font-family: var(--jc-outline);
	font-stretch: normal;
	color: transparent;
	-webkit-text-stroke: clamp(1.5px, .22vw, 3px) var(--fg);
}

.jc .jc-hero__eyebrow { position: relative; z-index: 3; }
.jc .jc-hero__hook {
	position: relative;
	z-index: 3;
	max-width: 13ch;
	margin-top: clamp(24px, 7vh, 80px);
	font-family: var(--jc-display);
	font-weight: 700;
	font-stretch: 85%;
	font-size: clamp(30px, 3.6vw, 58px);
	line-height: .98;
	letter-spacing: -.01em;
}
.jc .jc-hero__sub {
	position: relative;
	z-index: 3;
	max-width: 34ch;
	margin-top: 18px;
	font-size: 16px;
	line-height: 1.5;
	opacity: .78;
}
.jc .jc-hero__hint {
	position: absolute;
	right: var(--jc-pad);
	bottom: 40px;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 12px;
	font: 600 11px/1 var(--jc-text);
	letter-spacing: .16em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
}
.jc .jc-hero__hint::after {
	content: "";
	width: 1px;
	height: 64px;
	background: linear-gradient(var(--fg), transparent);
	animation: jc-drip 1.8s var(--jc-ease) infinite;
	transform-origin: top;
}

@keyframes jc-breathe { from { opacity: .75; transform: scale(1); } to { opacity: 1; transform: scale(1.08); } }
@keyframes jc-drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 860px) {
	.jc .jc-hero { display: flex; flex-direction: column; padding-top: 88px; }
	.jc .jc-hero__stage { position: relative; inset: auto; z-index: 0; height: 64svh; order: 1; margin: 30px 10px 0; }
	.jc .jc-hero__photo::after { inset: -10px; }
	.jc .jc-hero__photo { right: 0; left: 0; top: 0; height: 100%; width: 100%; translate: none; aspect-ratio: auto; }
	.jc .jc-hero__name { left: -2px; bottom: -.08em; font-size: 23vw; }
	.jc .jc-hero__eyebrow { order: 0; margin-bottom: 0; }
	.jc .jc-hero__hook { order: 2; max-width: 16ch; margin-top: 36px; }
	.jc .jc-hero__sub { order: 3; }
	.jc .jc-hero__hint { position: static; order: 4; writing-mode: horizontal-tb; margin-top: 32px; }
	.jc .jc-hero__hint::after { width: 48px; height: 1px; background: linear-gradient(90deg, var(--fg), transparent); transform-origin: left; animation-name: jc-drip-x; }
	@keyframes jc-drip-x { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }
}

/* Entrada del hero (solo con JS) */
html.jc-js .jc .jc-hero__photo img { clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--jc-ease) .2s; }
html.jc-js .jc.is-loaded .jc-hero__photo img { clip-path: inset(0 0 0 0); }
html.jc-js .jc .jc-hero__photo::after, html.jc-js .jc .jc-hero__photo::before { opacity: 0; transition: opacity 1.2s ease 1.2s; }
html.jc-js .jc.is-loaded .jc-hero__photo::after { opacity: 1; }
html.jc-js .jc.is-loaded .jc-hero__photo::before { opacity: 1; }
html.jc-js .jc .jc-hero :is(.jc-hero__eyebrow, .jc-hero__hook, .jc-hero__sub, .jc-hero__hint) { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--jc-ease), transform 1s var(--jc-ease); }
html.jc-js .jc.is-loaded .jc-hero :is(.jc-hero__eyebrow, .jc-hero__hook, .jc-hero__sub, .jc-hero__hint) { opacity: 1; transform: none; }
html.jc-js .jc.is-loaded .jc-hero__eyebrow { transition-delay: .5s; }
html.jc-js .jc.is-loaded .jc-hero__hook { transition-delay: 1.1s; }
html.jc-js .jc.is-loaded .jc-hero__sub { transition-delay: 1.3s; }
html.jc-js .jc.is-loaded .jc-hero__hint { transition-delay: 1.8s; }

.jc .jc-ch { display: inline-block; }
.jc .jc-line { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em; margin: 0 -.02em; }
html.jc-js .jc .jc-hero__name .jc-ch { transform: translateY(105%); transition: transform 1.1s var(--jc-ease); transition-delay: calc(.35s + var(--i) * 45ms); }
html.jc-js .jc.is-loaded .jc-hero__name .jc-ch { transform: none; }

/* ==========================================================================
   01 · MANIFIESTO (palabras que se encienden)
   ========================================================================== */

.jc .jc-manifesto__text {
	font-family: var(--jc-display);
	font-weight: 700;
	font-stretch: 88%;
	font-size: clamp(26px, 3.5vw, 60px);
	line-height: 1.08;
	letter-spacing: -.01em;
	max-width: 24ch;
	max-width: min(1180px, 100%);
	text-wrap: pretty;
}
.jc .jc-manifesto__text strong { font-weight: inherit; color: var(--accent); }

html.jc-js .jc .jc-manifesto { height: 280vh; padding: 0; }
html.jc-js .jc .jc-manifesto__pin {
	position: sticky;
	top: 0;
	height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 80px var(--jc-pad) 40px;
}
html.jc-js .jc .jc-w { opacity: .13; transition: opacity .35s ease; }
html.jc-js .jc .jc-w.is-on { opacity: 1; }

/* ==========================================================================
   02 · CIFRAS
   ========================================================================== */

.jc .jc-stats__grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
	gap: clamp(24px, 3vw, 48px);
	row-gap: clamp(40px, 7vh, 72px);
}
.jc .jc-stat { border-top: 1px solid var(--line); padding-top: 22px; container-type: inline-size; min-width: 0; }
.jc .jc-stat__num {
	font-family: var(--jc-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(56px, min(9.5vw, 42cqi), 170px);
	line-height: .86;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
	overflow-wrap: anywhere;
}
.jc .jc-stat:first-child .jc-stat__num { color: var(--accent); }
html.jc-js .jc .jc-stat__num { white-space: nowrap; overflow-wrap: normal; }
.jc .jc-stat__label { margin-top: 16px; font-size: 15px; line-height: 1.45; max-width: 26ch; opacity: .75; }

@media (max-width: 1000px) { .jc .jc-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .jc .jc-stats__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   03 · TRAYECTORIA (scroll horizontal)
   ========================================================================== */

.jc .jc-journey__track {
	display: flex;
	flex-direction: column;
	gap: 40px;
	counter-reset: ep;
}
.jc .jc-journey__intro { max-width: 640px; }
.jc .jc-journey__hint { margin-top: 28px; font: 600 12px/1 var(--jc-text); letter-spacing: .14em; text-transform: uppercase; opacity: .6; }

.jc .jc-ep {
	counter-increment: ep;
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	border: 1px solid var(--line);
	border-radius: 28px;
	overflow: hidden;
	background: rgba(255, 255, 255, .035);
	min-height: 520px;
}
.jc .jc-ep__img { overflow: hidden; height: 100%; }
.jc .jc-ep__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12) translateX(var(--px, 0px)); will-change: transform; }
.jc .jc-ep__body {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 14px;
	padding: clamp(24px, 3.2vw, 52px);
}
.jc .jc-ep__body::before {
	content: counter(ep, decimal-leading-zero);
	position: absolute;
	top: clamp(10px, 2vw, 24px);
	right: clamp(18px, 2.4vw, 36px);
	font-family: var(--jc-outline);
	font-weight: 800;
	font-size: clamp(96px, 12vw, 210px);
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--line);
}
.jc .jc-ep__kick { font: 600 12px/1.2 var(--jc-text); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.jc .jc-ep__title { font-family: var(--jc-display); font-weight: 800; font-stretch: 75%; font-size: clamp(44px, 5.4vw, 92px); line-height: .88; }
.jc .jc-ep__org { font-weight: 600; font-size: 16px; }
.jc .jc-ep__text { font-size: 16px; line-height: 1.55; opacity: .8; max-width: 48ch; }
.jc .jc-ep__links { font-size: 14px; line-height: 1.9; }
.jc .jc-ep:last-child { background: linear-gradient(135deg, rgba(0, 18, 255, .35), rgba(255, 0, 184, .3)); }

html.jc-js .jc .jc-journey.is-pinned { padding: 0; }
html.jc-js .jc .jc-journey.is-pinned .jc-journey__pin {
	position: sticky;
	top: 0;
	height: 100svh;
	overflow: hidden;
	display: flex;
	align-items: center;
}
html.jc-js .jc .jc-journey.is-pinned .jc-journey__track {
	flex-direction: row;
	align-items: center;
	gap: clamp(28px, 4vw, 72px);
	padding: 60px var(--jc-pad) 0;
	will-change: transform;
}
html.jc-js .jc .jc-journey.is-pinned .jc-journey__intro { flex: 0 0 min(40vw, 620px); }
html.jc-js .jc .jc-journey.is-pinned .jc-ep { flex: 0 0 min(76vw, 1080px); height: min(70vh, 640px); min-height: 0; }

@media (max-width: 760px) {
	.jc .jc-ep { grid-template-columns: 1fr; }
	.jc .jc-ep__img { height: 56vh; }
}

/* ==========================================================================
   04 · REELS
   ========================================================================== */

.jc .jc-reels__row {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), minmax(0, 330px));
	justify-content: center;
	gap: clamp(20px, 4vw, 72px);
	row-gap: clamp(56px, 9vh, 110px);
}
.jc .jc-reels__row.is-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); justify-content: stretch; gap: clamp(20px, 3vw, 40px); row-gap: 64px; }
.jc .jc-reel { will-change: translate; translate: 0 var(--ry, 0px); min-width: 0; }
.jc .jc-reel__video { position: relative; cursor: pointer; }
.jc .jc-reel__video video,
.jc .jc-reel__video > img,
.jc .jc-reel__video.is-empty {
	display: block;
	width: 100%;
	aspect-ratio: 9 / 16;
	object-fit: cover;
	border-radius: 30px;
	background: #000;
	box-shadow: 0 0 0 7px #1c1c24, 0 0 0 8px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(255, 0, 184, .55);
}
.jc .jc-reel__video.is-empty { background: linear-gradient(160deg, rgba(0,18,255,.5), rgba(255,0,184,.45)); }
.jc .jc-reel:nth-child(3n+2) .jc-reel__video video { box-shadow: 0 0 0 7px #1c1c24, 0 0 0 8px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 18, 255, .7); }
.jc .jc-reel__video::after {
	content: attr(data-sound);
	position: absolute;
	top: 18px;
	right: 18px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(7, 7, 10, .6);
	backdrop-filter: blur(6px);
	color: #fff;
	font: 600 10px/1 var(--jc-text);
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity .3s;
}
.jc .jc-reel__video[data-sound]::after { opacity: 1; }
.jc .jc-reel__meta { margin-top: 26px; font-size: 15px; opacity: .85; }
.jc .jc-story .jc-reel__meta strong a { text-decoration: none; }
.jc .jc-story .jc-reel__meta strong a:hover { color: var(--accent); }
.jc .jc-reel__meta strong { display: block; font-family: var(--jc-display); font-weight: 700; font-stretch: 85%; font-size: 24px; line-height: 1.1; opacity: 1; }
.jc .jc-reel__views { margin-top: 10px; font-family: var(--jc-display); font-weight: 800; font-stretch: 75%; font-size: 40px; line-height: 1; color: var(--accent); }
.jc .jc-reel__link { margin-top: 10px; font-size: 14px; }

@media (max-width: 860px) {
	.jc .jc-reels__row:not(.is-grid) {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: min(74vw, 330px);
		justify-content: start;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		margin: 0 calc(var(--jc-pad) * -1);
		padding: 10px var(--jc-pad) 30px;
		scrollbar-width: none;
	}
	.jc .jc-reel { scroll-snap-align: center; translate: none; }
	.jc .jc-reels__row.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; row-gap: 40px; }
	.jc .jc-reels__row.is-grid .jc-reel__video video,
	.jc .jc-reels__row.is-grid .jc-reel__video > img,
	.jc .jc-reels__row.is-grid .jc-reel__video.is-empty { border-radius: 18px; box-shadow: 0 0 0 4px #1c1c24; }
	.jc .jc-reels__row.is-grid .jc-reel__meta { margin-top: 18px; font-size: 13px; }
	.jc .jc-reels__row.is-grid .jc-reel__meta strong { font-size: 18px; }
	.jc .jc-reels__row.is-grid .jc-reel__views { font-size: 26px; }
	.jc .jc-reels__row.is-grid .jc-reel__video::after { top: 10px; right: 10px; font-size: 9px; }
}

/* ==========================================================================
   05 · INVESTIGACIÓN (escena azul)
   ========================================================================== */

.jc .jc-research__grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
	gap: clamp(20px, 3vw, 48px);
	row-gap: clamp(32px, 5vh, 56px);
	align-items: start;
}
.jc .jc-research__grid.is-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.jc .jc-work {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: clamp(16px, 1.6vw, 22px) clamp(16px, 1.6vw, 22px) clamp(24px, 2.6vw, 36px);
	border-radius: 30px;
	background: rgba(0, 0, 0, .16);
	border: 1px solid rgba(255, 255, 255, .22);
	container-type: inline-size;
	min-width: 0;
}
.jc .jc-research__grid:not(.is-grid) .jc-work:nth-child(3n+2) { margin-top: clamp(0px, 12vh, 140px); }
.jc .jc-work__img { overflow: hidden; border-radius: 20px; margin-bottom: 10px; }
.jc .jc-work__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transform: scale(var(--sc, 1)); }
.jc .jc-work > :not(.jc-work__img) { padding-inline: clamp(6px, 1vw, 14px); }
.jc .jc-work__kick { font: 600 12px/1.4 var(--jc-text); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.jc .jc-work__title { font-family: var(--jc-display); font-weight: 700; font-stretch: 85%; font-size: clamp(24px, 7.2cqi, 44px); line-height: 1.04; }
.jc .jc-story .jc-work__title a { text-decoration: none; }
.jc .jc-story .jc-work__title a:hover { text-decoration: underline; color: inherit; }
.jc .jc-work__img a { display: block; }
.jc .jc-work__text { font-size: 16px; line-height: 1.55; opacity: .88; }
.jc .jc-work .jc-actions { margin-top: auto; padding-top: 8px; }

@media (max-width: 1100px) {
	.jc .jc-research__grid:not(.is-grid) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
	.jc .jc-research__grid:not(.is-grid) .jc-work:nth-child(3n+2) { margin-top: 0; }
}
@media (max-width: 760px) {
	.jc .jc-research__grid:not(.is-grid) { grid-template-columns: 1fr; }
}

/* ==========================================================================
   06 · BACKSTAGE (formación)
   ========================================================================== */

.jc .jc-education__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 110px);
	align-items: center;
}
.jc .jc-education__img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.jc .jc-education__body .jc-title { margin-bottom: clamp(32px, 6vh, 64px); }
.jc .jc-degree { border-top: 1px solid var(--line); padding: 24px 0 28px; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; }
.jc .jc-degree__year {
	grid-row: span 2;
	font-family: var(--jc-outline);
	font-weight: 800;
	font-size: clamp(40px, 4.4vw, 72px);
	line-height: .9;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--fg);
}
.jc .jc-degree__title { font-family: var(--jc-display); font-weight: 700; font-stretch: 90%; font-size: clamp(20px, 1.8vw, 28px); line-height: 1.15; }
.jc .jc-degree__school { margin-top: 6px; font-size: 15px; opacity: .7; }

@media (max-width: 860px) {
	.jc .jc-education__grid { grid-template-columns: 1fr; }
	.jc .jc-education__img img { aspect-ratio: 3 / 2; }
}

/* ==========================================================================
   07 · EL REPARTO (tarjetas que se apilan)
   ========================================================================== */

.jc .jc-quotes__stack { max-width: 1000px; margin-inline: auto; }
.jc .jc-quote {
	position: sticky;
	top: calc(16vh + min(var(--qi, 0), 4) * 24px);
	padding: clamp(28px, 4.4vw, 68px);
	border-radius: 34px;
	background: #fff;
	color: var(--jc-black);
	box-shadow: 0 30px 80px -40px rgba(7, 7, 10, .45);
	transform: rotate(var(--qr, 0deg));
}
.jc .jc-quote + .jc-quote { margin-top: 26vh; }
.jc .jc-quote:nth-child(3n+1) { --qr: -1.4deg; }
.jc .jc-quote:nth-child(3n+2) { --qr: 1.1deg; background: var(--jc-blue); color: #fff; }
.jc .jc-quote:nth-child(3n) { --qr: -.5deg; background: var(--jc-black); color: var(--jc-paper); }
.jc .jc-quotes__stack.is-grid { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: clamp(20px, 3vw, 36px); align-items: start; }
.jc .jc-quotes__stack.is-grid .jc-quote { position: relative; top: auto; margin: 0; }
.jc .jc-quotes__stack.is-grid .jc-quote__text { font-size: clamp(22px, 2vw, 30px); }
.jc .jc-quote__text { font-family: var(--jc-display); font-weight: 700; font-stretch: 88%; font-size: clamp(24px, 3vw, 46px); line-height: 1.08; letter-spacing: -.01em; text-wrap: pretty; }
.jc .jc-quote__who { margin-top: 28px; font-size: 15px; line-height: 1.45; opacity: .8; }
.jc .jc-quote__who strong { font-weight: 700; opacity: 1; }
.jc .jc-quotes { padding-bottom: 22vh; }

/* ==========================================================================
   08 · HERRAMIENTAS (marquesina)
   ========================================================================== */

.jc .jc-tools { overflow: hidden; }
.jc .jc-marquee {
	font-family: var(--jc-display);
	font-weight: 800;
	font-stretch: 75%;
	font-size: clamp(56px, 10vw, 180px);
	line-height: 1;
	letter-spacing: -.01em;
	text-transform: uppercase;
}
.jc .jc-marquee + .jc-marquee { margin-top: .12em; }
.jc .jc-marquee--outline { font-family: var(--jc-outline); font-stretch: normal; color: transparent; -webkit-text-stroke: 1.5px var(--fg); }
html.jc-js .jc .jc-marquee { white-space: nowrap; margin-inline: calc(var(--jc-pad) * -1); }
.jc .jc-marquee__track { display: inline-block; will-change: transform; }
.jc .jc-marquee__dot { display: inline-block; width: .16em; height: .16em; margin: 0 .35em; border-radius: 50%; background: var(--jc-fuc); vertical-align: middle; -webkit-text-stroke: 0; }

/* ==========================================================================
   09 · CONTACTO (escena fucsia)
   ========================================================================== */

.jc .jc-contact { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(96px, 12vh, 140px); }
.jc .jc-contact__title { font-size: clamp(60px, min(12.5vw, 21vh), 236px); line-height: .84; max-width: 12ch; text-transform: uppercase; }
.jc .jc-contact__text { margin-top: clamp(24px, 4vh, 44px); max-width: 44ch; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; }
.jc .jc-contact__email { margin-top: clamp(24px, 4vh, 48px); font-family: var(--jc-display); font-weight: 800; font-stretch: 75%; font-size: clamp(34px, min(6.4vw, 11vh), 118px); line-height: 1; overflow-wrap: anywhere; }
.jc .jc-story .jc-contact__email a { text-decoration-thickness: .06em; text-underline-offset: .12em; }
.jc .jc-story .jc-contact__email a:hover { color: #fff; }
.jc .jc-contact .jc-actions { margin-top: clamp(28px, 5vh, 48px); gap: 12px; }
.jc .jc-contact__meta { margin-top: 28px; font-size: 15px; opacity: .8; }

/* ---------- Botones ---------- */

.jc .jc-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.jc .jc-actions .wp-block-button__link { transition: background-color .25s, color .25s, transform .25s var(--jc-ease), border-color .25s; }
.jc .jc-actions .wp-block-button__link:hover { transform: translateY(-2px); }
.jc .jc-btn-light .wp-block-button__link { background: #fff; color: var(--jc-blue); }
.jc .jc-btn-light .wp-block-button__link:hover { background: var(--jc-fuc); color: var(--jc-black); }
.jc .jc-btn-dark .wp-block-button__link { background: var(--jc-black); color: #fff; }
.jc .jc-btn-dark .wp-block-button__link:hover { background: #fff; color: var(--jc-black); }
.jc .jc-btn-outline .wp-block-button__link { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.jc .jc-btn-outline .wp-block-button__link:hover { background: var(--jc-black); color: #fff; box-shadow: inset 0 0 0 2px var(--jc-black); }

/* ==========================================================================
   CRÉDITOS
   ========================================================================== */

.jc .jc-credits { text-align: center; padding-top: 22vh; padding-bottom: 18vh; }
.jc .jc-credits__title { max-width: none; font-size: clamp(40px, 5vw, 80px); text-transform: uppercase; margin-bottom: 56px; }
.jc .jc-credits__list { display: grid; gap: 34px; }
.jc .jc-credit { font: 600 11px/1.4 var(--jc-text); letter-spacing: .18em; text-transform: uppercase; color: var(--jc-mist); }
.jc .jc-credit strong { display: block; margin-top: 6px; font-family: var(--jc-display); font-weight: 700; font-stretch: 90%; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: 0; text-transform: none; color: var(--fg); }
.jc .jc-credits__end { margin-top: 72px; font-size: 13px; opacity: .55; }
.jc .jc-credits::after {
	content: "";
	display: block;
	width: 72px;
	height: 72px;
	margin: 48px auto 0;
	background: url(../img/logo-mark.svg) center / contain no-repeat;
}

/* ==========================================================================
   HUD (cabecera fija), barra de progreso y grano
   ========================================================================== */

.jc .jc-hud {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 16px;
	padding: 18px var(--jc-pad);
	color: var(--fg);
	pointer-events: none;
	transition: color .8s var(--jc-ease), transform .5s var(--jc-ease);
}
.jc .jc-hud > * { pointer-events: auto; }
.jc .jc-hud::before {
	content: "";
	position: absolute;
	inset: 0 0 -28px;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(var(--bg) 25%, transparent);
	opacity: .92;
	transition: background .8s var(--jc-ease);
}
.jc .jc-hud__logo { justify-self: start; display: block; color: inherit; line-height: 0; }
.jc .jc-hud__logo svg { height: 42px; width: auto; }
.jc .jc-hud__logo:hover svg circle { fill: var(--jc-blue); }
.jc .jc-hud__rec {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--bg) 55%, transparent);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font: 600 11px/1 var(--jc-text);
	letter-spacing: .12em;
	text-transform: uppercase;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.jc .jc-hud__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jc-rec); animation: jc-blink 1.2s steps(2, jump-none) infinite; }
.jc .jc-hud__scene { opacity: .7; padding-left: 10px; border-left: 1px solid var(--line); max-width: 30ch; overflow: hidden; text-overflow: ellipsis; }
.jc .jc-hud__nav { justify-self: end; display: flex; align-items: center; gap: 18px; font: 600 13px/1 var(--jc-text); letter-spacing: .06em; }
.jc .jc-hud__cv { color: inherit; text-decoration: none; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .25s, color .25s; }
.jc .jc-hud__cv:hover { background: var(--fg); color: var(--bg); }

@keyframes jc-blink { 0% { opacity: 1; } 100% { opacity: .15; } }

@media (max-width: 760px) {
	.jc .jc-hud { grid-template-columns: auto 1fr auto; padding-block: 14px; gap: 10px; }
	.jc .jc-hud__logo svg { height: 34px; }
	.jc .jc-hud__rec { justify-self: center; padding: 7px 10px; gap: 7px; font-size: 10px; }
	.jc .jc-hud__scene, .jc .jc-hud__recword { display: none; }
	.jc .jc-hud__nav { gap: 10px; }
	.jc .jc-hud__cv { padding: 8px 12px; }
}

.jc .jc-scrubber { position: fixed; inset: auto 0 0; z-index: 50; height: 3px; background: var(--line); }
.jc .jc-scrubber__bar { position: absolute; inset: 0; background: var(--jc-rec); transform-origin: left; transform: scaleX(var(--p, 0)); }
.jc .jc-scrubber__ticks a { position: absolute; bottom: 0; width: 18px; height: 14px; margin-left: -9px; }
.jc .jc-scrubber__ticks a::before { content: ""; position: absolute; left: 8px; bottom: 0; width: 2px; height: 8px; background: var(--fg); opacity: .5; transition: height .2s, opacity .2s; }
.jc .jc-scrubber__ticks a:hover::before { height: 14px; opacity: 1; }

.jc .jc-grain {
	position: fixed;
	inset: -50%;
	z-index: 60;
	pointer-events: none;
	opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	animation: jc-grain 1s steps(6) infinite;
}
body.jc[data-bg="light"] .jc-grain, body.jc[data-bg="fucsia"] .jc-grain { opacity: .1; mix-blend-mode: multiply; }
@keyframes jc-grain {
	0% { transform: translate(0, 0); } 20% { transform: translate(-6%, 4%); } 40% { transform: translate(5%, -3%); }
	60% { transform: translate(-3%, -6%); } 80% { transform: translate(4%, 5%); } 100% { transform: translate(0, 0); }
}

/* ==========================================================================
   Revelados al entrar en pantalla
   ========================================================================== */

html.jc-js .jc .jc-reveal { opacity: 0; transform: translateY(44px); transition: opacity 1s var(--jc-ease), transform 1s var(--jc-ease); transition-delay: var(--d, 0s); }
html.jc-js .jc .jc-reveal.is-in { opacity: 1; transform: none; }

html.jc-js .jc .jc-wi { display: inline-block; transform: translateY(108%); transition: transform 1s var(--jc-ease); transition-delay: calc(var(--i) * 55ms); }
html.jc-js .jc .is-in .jc-wi { transform: none; }
.jc .jc-wm { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }

html.jc-js .jc .jc-clip img { clip-path: inset(14% 10% 14% 10% round 28px); transition: clip-path 1.4s var(--jc-ease); }
html.jc-js .jc .jc-clip.is-in img { clip-path: inset(0 0 0 0 round 0px); }

/* ==========================================================================
   Páginas genéricas
   ========================================================================== */

.jc .jc-page { padding: 160px var(--jc-pad) 120px; min-height: 70vh; }
.jc .jc-page__title { font-family: var(--jc-display); font-weight: 800; font-stretch: 75%; font-size: clamp(48px, 7vw, 110px); line-height: .9; margin-bottom: 40px; }
.jc .jc-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px; padding: 40px var(--jc-pad) 48px; border-top: 1px solid var(--line); font-size: 14px; }
.jc .jc-footer p { margin: 0; }
.jc .jc-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; }
.jc .jc-footer a { color: inherit; text-decoration: none; }
.jc .jc-footer a:hover { color: var(--accent); }
.jc .jc-footer__text { opacity: .65; }

/* ==========================================================================
   Movimiento reducido: todo visible, sin anclajes ni desplazamientos
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	html.jc-js .jc .jc-reveal, html.jc-js .jc .jc-wi, html.jc-js .jc .jc-hero__name .jc-ch,
	html.jc-js .jc .jc-hero :is(.jc-hero__eyebrow, .jc-hero__hook, .jc-hero__sub, .jc-hero__hint) { opacity: 1; transform: none; transition: none; }
	html.jc-js .jc .jc-clip img, html.jc-js .jc .jc-hero__photo img { clip-path: none; transition: none; }
	html.jc-js .jc .jc-hero__photo::after, html.jc-js .jc .jc-hero__photo::before { opacity: 1; transition: none; }
	html.jc-js .jc .jc-manifesto { height: auto; padding: clamp(96px, 16vh, 190px) var(--jc-pad); }
	html.jc-js .jc .jc-manifesto__pin { position: static; height: auto; padding: 0; }
	html.jc-js .jc .jc-w { opacity: 1; }
	html.jc-js .jc .jc-marquee { white-space: normal; margin-inline: 0; }
	.jc .jc-grain, .jc .jc-hero__photo::before, .jc .jc-hud__dot, .jc .jc-hero__hint::after { animation: none; }
	.jc .jc-quote { position: relative; top: auto; }
	.jc .jc-quote + .jc-quote { margin-top: 32px; }
	body.jc { transition: none; }
}

/* ==========================================================================
   «Ver más», archivos y fichas
   ========================================================================== */

.jc .jc-more { margin-top: clamp(44px, 8vh, 80px); justify-content: center; }
.jc .jc-reels__row:not(.is-grid) + .jc-more { margin-top: calc(clamp(44px, 8vh, 80px) + 90px); }
@media (max-width: 860px) { .jc .jc-reels__row:not(.is-grid) + .jc-more { margin-top: 24px; } }
.jc .jc-btn-ghost .wp-block-button__link { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.jc .jc-btn-ghost .wp-block-button__link:hover { background: #fff; color: var(--jc-blue); }

.jc .jc-archive { padding-top: clamp(130px, 20vh, 220px); min-height: 80vh; }
.jc .jc-archive .jc-title { font-size: clamp(48px, 8vw, 140px); }
.jc .jc-back { margin-top: clamp(48px, 8vh, 80px); display: flex; flex-wrap: wrap; gap: 14px 28px; font: 600 12px/1.2 var(--jc-text); letter-spacing: .12em; text-transform: uppercase; }
.jc .jc-story .jc-back a { text-decoration: none; opacity: .8; }
.jc .jc-story .jc-back a:hover { opacity: 1; text-decoration: underline; color: inherit; }

.jc .jc-single { padding-top: clamp(120px, 18vh, 200px); }
.jc .jc-single__grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: start; max-width: 1200px; margin-inline: auto; }
.jc .jc-single__media { position: sticky; top: 110px; }
.jc .jc-single .jc-title { max-width: 18ch; }
.jc .jc-title--single { font-size: clamp(40px, 6.2vw, 100px); max-width: 22ch; }
.jc .jc-single__metric { margin-top: 18px; font-family: var(--jc-display); font-weight: 800; font-stretch: 75%; font-size: clamp(40px, 4vw, 64px); line-height: 1; color: var(--accent); }
.jc .jc-single__content { margin-top: clamp(24px, 4vh, 40px); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; max-width: 62ch; }
.jc .jc-single__content > * + * { margin-top: 1em; }
.jc .jc-single .jc-actions { margin-top: 32px; }
.jc .jc-single__narrow { max-width: 900px; margin-inline: auto; }
.jc .jc-single__hero { max-width: 1200px; margin: clamp(40px, 7vh, 80px) auto; }
.jc .jc-single__hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 28px; }
.jc .jc-single + .jc-scene { padding-top: clamp(40px, 8vh, 96px); }

@media (max-width: 860px) {
	.jc .jc-single__grid { grid-template-columns: 1fr; }
	.jc .jc-single__media { position: static; max-width: 340px; width: 100%; margin-inline: auto; }
	.jc .jc-single__hero img { border-radius: 18px; }
}
