/* =====================================================================
   DOSTORATA · hoja de estilo (rediseño 3)
   Sistema: tokens -> base -> componentes -> páginas -> movimiento.
   Tema por defecto: Danganronpa (rosa neón / negro / blanco, cortes
   diagonales). body[data-tema="pokemon"] cambia acentos y formas.
   Fuentes locales (carpeta fuentes/): nada se carga de otros servidores.
   ===================================================================== */

@font-face {
	font-family: "Dela";
	src: url("fuentes/DelaGothicOne-Regular.ttf") format("truetype");
	font-display: swap;
}
@font-face {
	font-family: "Pixel";
	src: url("fuentes/DotGothic16-Regular.ttf") format("truetype");
	font-display: swap;
}
@font-face {
	font-family: "Mplus";
	src: url("fuentes/MPLUS1p-Bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: "Mplus";
	src: url("fuentes/MPLUS1p-Black.ttf") format("truetype");
	font-weight: 900;
	font-display: swap;
}

:root {
	--rosa: #ff2d8a;
	--rosa-2: #ff6fb0;
	--negro: #09080b;
	--negro-2: #121016;
	--negro-3: #1c1922;
	--linea: #2c2833;
	--blanco: #f6f2ef;
	--gris: #bdb6c1;
	--gris-2: #948c99;
	--acento: var(--rosa);
	--acento-2: var(--rosa-2);
	--sobre-acento: #0b0910;
	--corte: 22px;
	--radio: 0px;
	--ancho: 1240px;
	--f-titulo: "Dela", "Mplus", Impact, system-ui, sans-serif;
	--f-texto:
		"Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--f-pixel: "Pixel", ui-monospace, monospace;
	--f-rotulo: "Mplus", "Segoe UI", system-ui, sans-serif;
	--sombra: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-golpe: cubic-bezier(0.7, 0, 0.2, 1);
	color-scheme: dark;
}

body[data-tema="pokemon"] {
	--acento: #ffcb05;
	--acento-2: #8db8ff;
	--sobre-acento: #10131c;
	--negro: #0b0e16;
	--negro-2: #111522;
	--negro-3: #1a2030;
	--linea: #28304a;
	--corte: 0px;
	--radio: 18px;
}

/* ---------- base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	background: var(--negro);
	color: var(--blanco);
	font: 400 17px / 1.65 var(--f-texto);
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}
img {
	max-width: 100%;
	display: block;
}
a {
	color: var(--acento-2);
	text-underline-offset: 3px;
}
a:hover {
	color: var(--blanco);
}
b,
strong {
	color: #fff;
	font-weight: 700;
}
code {
	font-family: ui-monospace, Consolas, monospace;
	background: var(--negro-3);
	padding: 1px 6px;
	font-size: 0.9em;
}
:focus-visible {
	outline: 3px solid var(--acento);
	outline-offset: 3px;
}
::selection {
	background: var(--rosa);
	color: #fff;
}
h1,
h2,
h3 {
	font-family: var(--f-titulo);
	font-weight: 400;
	line-height: 1.05;
	margin: 0 0 0.4em;
	letter-spacing: -0.01em;
}
h2 {
	font-size: clamp(2rem, 5vw, 3.6rem);
}
h3 {
	font-size: 1.25rem;
}
p {
	margin: 0 0 1em;
}
.salto {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 200;
	background: var(--acento);
	color: var(--sobre-acento);
	padding: 10px 16px;
	font-weight: 700;
}
.salto:focus {
	left: 8px;
}

/* ruido y barra de progreso */
body::after {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 90;
	opacity: 0.05;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progreso-scroll {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 100%;
	z-index: 80;
	background: var(--acento);
	transform-origin: 0 50%;
	transform: scaleX(var(--p, 0));
	box-shadow: 0 0 12px var(--acento);
	pointer-events: none;
}

/* ---------- barra superior ---------- */
.barra {
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	height: 72px;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 0 clamp(16px, 4vw, 48px);
	transition:
		background 0.4s,
		backdrop-filter 0.4s,
		height 0.4s var(--ease),
		border-color 0.4s;
	border-bottom: 1px solid transparent;
}
.barra.solida {
	background: rgba(9, 8, 11, 0.8);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px);
	border-color: var(--linea);
	height: 62px;
}
body[data-tema="pokemon"] .barra.solida {
	background: rgba(11, 14, 22, 0.82);
}
.marca {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-family: var(--f-titulo);
	font-size: 1.15rem;
	letter-spacing: 0.04em;
	margin-right: auto;
	position: relative;
	z-index: 2;
}
.marca img {
	width: 34px;
	height: 34px;
	transition: transform 0.6s var(--ease);
}
.marca:hover {
	color: #fff;
}
.marca:hover img {
	transform: rotate(-180deg);
}
.nav ul {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	align-items: center;
}
.nav a {
	display: block;
	padding: 9px 14px;
	color: var(--gris);
	text-decoration: none;
	position: relative;
	isolation: isolate;
	font: 700 0.8rem / 1 var(--f-rotulo);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.nav a::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--acento);
	clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
	transform: scaleY(0);
	transition: transform 0.3s var(--ease);
	z-index: -1;
}
.nav a:hover,
.nav a[aria-current] {
	color: var(--sobre-acento);
}
.nav a:hover::before,
.nav a[aria-current]::before {
	transform: scaleY(1);
}
body[data-tema="pokemon"] .nav a::before {
	clip-path: none;
	border-radius: 99px;
}
.hamburguesa {
	display: none;
	width: 46px;
	height: 46px;
	background: none;
	border: 0;
	cursor: pointer;
	position: relative;
}
.hamburguesa span,
.hamburguesa span::before,
.hamburguesa span::after {
	position: absolute;
	left: 11px;
	width: 24px;
	height: 2px;
	background: #fff;
	transition:
		transform 0.35s var(--ease),
		background 0.2s;
	content: "";
}
.hamburguesa span {
	top: 22px;
}
.hamburguesa span::before {
	left: 0;
	top: -7px;
}
.hamburguesa span::after {
	left: 0;
	top: 7px;
}
.hamburguesa[aria-expanded="true"] span {
	background: transparent;
}
.hamburguesa[aria-expanded="true"] span::before {
	transform: translateY(7px) rotate(45deg);
}
.hamburguesa[aria-expanded="true"] span::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- botones ---------- */
.btn {
	--c: var(--acento);
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 15px 28px;
	font: 900 0.88rem / 1 var(--f-rotulo);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid var(--c);
	cursor: pointer;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
	transition:
		color 0.3s,
		transform 0.3s var(--ease),
		box-shadow 0.3s,
		border-color 0.3s;
}
body[data-tema="pokemon"] .btn {
	clip-path: none;
	border-radius: 99px;
}
.btn-sangre {
	background: var(--c);
	color: var(--sobre-acento);
}
.btn-sangre::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	transform: translateX(-101%) skewX(-20deg);
	transition: transform 0.45s var(--ease);
	z-index: -1;
}
.btn-sangre:hover {
	color: var(--sobre-acento);
	transform: translateY(-2px);
	box-shadow: 0 14px 40px -12px var(--c);
}
.btn-sangre:hover::before {
	transform: translateX(0) skewX(0);
}
.btn-hueco {
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.5);
}
.btn-hueco:hover {
	border-color: var(--c);
	color: var(--c);
}
.btn-apagado {
	background: var(--negro-3);
	color: var(--gris-2);
	border-color: var(--linea);
	cursor: not-allowed;
}
.btn-peq {
	padding: 11px 18px;
	font-size: 0.74rem;
}
.btn .fl {
	transition: transform 0.3s var(--ease);
}
.btn:hover .fl {
	transform: translateX(5px);
}

/* ---------- estructura ---------- */
main {
	display: block;
}
.seccion {
	position: relative;
	max-width: var(--ancho);
	margin: 0 auto;
	padding: clamp(70px, 10vw, 130px) clamp(18px, 4vw, 40px);
}
.cabecera {
	position: relative;
	max-width: 780px;
	margin-bottom: 48px;
}
.cabecera .num,
.rotulo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	font: 900 0.76rem / 1 var(--f-rotulo);
	letter-spacing: 0.3em;
	text-transform: uppercase;
	color: var(--acento);
}
.cabecera .num::before,
.rotulo::before {
	content: "";
	width: 28px;
	height: 3px;
	background: currentColor;
	transform: skewX(-30deg);
}
.cabecera p:not(.num) {
	color: var(--gris);
	font-size: 1.08rem;
	max-width: 640px;
}
.cabecera h2 em,
.marca-grande em {
	font-style: normal;
	color: var(--acento);
}
.fantasma {
	position: absolute;
	right: 100%;
	top: -0.15em;
	margin-right: 24px;
	pointer-events: none;
	font: 400 clamp(5rem, 10vw, 8rem) / 0.8 var(--f-titulo);
	color: transparent;
	-webkit-text-stroke: 1px #3a3542;
}
@media (max-width: 1440px) {
	.fantasma {
		right: 0;
		top: -0.2em;
		margin: 0;
		opacity: 0.6;
		z-index: -1;
	}
}
.sub-titulo {
	font-size: 1.6rem;
	margin-top: 70px;
}

/* rótulo diagonal tipo juicio */
.juicio-rotulo {
	display: inline-block;
	padding: 7px 22px 9px;
	background: var(--acento);
	color: var(--sobre-acento);
	font: 400 clamp(0.85rem, 1.5vw, 1.05rem) / 1 var(--f-titulo);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	transform: skewX(-14deg) rotate(-2deg);
	box-shadow: 5px 5px 0 #fff;
}
.juicio-rotulo > span {
	display: inline-block;
	transform: skewX(14deg);
}
body[data-tema="pokemon"] .juicio-rotulo {
	transform: none;
	border-radius: 99px;
	box-shadow: none;
}
body[data-tema="pokemon"] .juicio-rotulo > span {
	transform: none;
}

/* glitch sutil */
.glitch {
	position: relative;
	display: inline-block;
}
.glitch::before,
.glitch::after {
	content: attr(data-t);
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0;
}
.glitch::before {
	color: var(--rosa);
	clip-path: inset(10% 0 60% 0);
}
.glitch::after {
	color: #3df0ff;
	clip-path: inset(55% 0 15% 0);
}
.glitch.activo::before,
.glitch.activo::after {
	opacity: 0.8;
	animation: glitch 0.32s steps(2) 2;
}
@keyframes glitch {
	0% {
		clip-path: inset(10% 0 70% 0);
		transform: translate(-5px, 1px);
	}
	33% {
		clip-path: inset(60% 0 8% 0);
		transform: translate(4px, -2px);
	}
	66% {
		clip-path: inset(30% 0 40% 0);
		transform: translate(-3px, 2px);
	}
	100% {
		clip-path: inset(80% 0 2% 0);
		transform: translate(3px, 0);
	}
}

/* =====================================================================
   PORTADA
   ===================================================================== */
.heroe {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: grid;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
	padding: 110px clamp(18px, 5vw, 70px) 110px;
}
.heroe-fondo {
	position: absolute;
	inset: -8% -2%;
	z-index: -4;
	will-change: transform;
}
.heroe-fondo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: grayscale(1) contrast(1.2) brightness(0.5);
}
.heroe-fondo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		115deg,
		rgba(255, 45, 138, 0.75),
		rgba(255, 45, 138, 0.15) 45%,
		rgba(9, 8, 11, 0.9)
	);
	mix-blend-mode: multiply;
}
.heroe-velo {
	position: absolute;
	inset: 0;
	z-index: -3;
	background:
		radial-gradient(
			ellipse at 15% 110%,
			rgba(255, 45, 138, 0.5),
			transparent 55%
		),
		linear-gradient(180deg, rgba(9, 8, 11, 0.2) 45%, var(--negro) 98%);
}
.heroe-rayas {
	position: absolute;
	inset: 0;
	z-index: -3;
	opacity: 0.35;
	background: repeating-linear-gradient(
		0deg,
		rgba(255, 255, 255, 0.05) 0 1px,
		transparent 1px 4px
	);
}
.heroe-corte {
	position: absolute;
	z-index: -2;
	left: -10%;
	right: -10%;
	height: 130px;
	background: var(--rosa);
	transform: rotate(-8deg);
	top: 64%;
	box-shadow: 0 0 90px rgba(255, 45, 138, 0.55);
	opacity: 0.95;
}
.heroe-corte::after {
	content: "";
	position: absolute;
	inset: 16px 0;
	border-block: 2px solid rgba(9, 8, 11, 0.4);
}
.heroe-corte.dos {
	background: #fff;
	height: 12px;
	top: calc(64% + 150px);
	opacity: 0.9;
	box-shadow: none;
}
.heroe-corte.dos::after {
	display: none;
}
.heroe-personaje {
	position: absolute;
	z-index: -1;
	right: clamp(-60px, 2vw, 60px);
	bottom: 0;
	height: 94%;
	pointer-events: none;
	will-change: transform;
}
.heroe-personaje img {
	height: 100%;
	width: auto;
	aspect-ratio: 440 / 779;
	object-fit: cover;
	object-position: left top;
	filter: drop-shadow(-14px 0 0 rgba(255, 45, 138, 0.5))
		drop-shadow(0 30px 60px rgba(0, 0, 0, 0.8));
}
.heroe-texto {
	position: relative;
	max-width: 900px;
}
.marca-grande {
	margin: 0 0 22px;
}
.marca-grande .glitch {
	display: block;
	font: 400 clamp(3.2rem, 12.5vw, 11rem) / 0.86 var(--f-titulo);
	letter-spacing: -0.03em;
	color: #fff;
	text-shadow:
		6px 6px 0 var(--rosa),
		0 0 60px rgba(255, 45, 138, 0.35);
}
.marca-grande .linea2 {
	display: block;
	margin-top: 22px;
	font: 900 clamp(1.1rem, 2.6vw, 1.9rem) / 1.2 var(--f-rotulo);
	letter-spacing: 0.02em;
}
.lema {
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	color: #ece5ea;
	max-width: 600px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}
.botones {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	margin-top: 28px;
}
.heroe-pie {
	position: absolute;
	left: clamp(18px, 5vw, 70px);
	right: clamp(18px, 5vw, 70px);
	bottom: 24px;
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 20px;
	font: 400 0.85rem / 1.2 var(--f-pixel);
	color: var(--gris);
	letter-spacing: 0.1em;
}
.bajar {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
}
.bajar i {
	width: 2px;
	height: 46px;
	background: linear-gradient(var(--rosa), transparent);
	animation: bajar 1.8s var(--ease) infinite;
	transform-origin: top;
}
@keyframes bajar {
	0% {
		transform: scaleY(0);
	}
	60% {
		transform: scaleY(1);
		opacity: 1;
	}
	100% {
		transform: scaleY(1);
		opacity: 0;
	}
}
.heroe-sprites {
	display: flex;
	gap: 8px;
	align-items: end;
}
.heroe-sprites img {
	height: 58px;
	width: auto;
	image-rendering: pixelated;
}
.heroe-sprites img:nth-child(odd) {
	animation: flota 2.4s ease-in-out infinite;
}

/* entrada de la portada */
.letras > span {
	display: inline-block;
	transform: translateY(105%) rotate(8deg);
	opacity: 0;
}
.cargada .letras > span {
	animation: letra 0.9s var(--ease) forwards;
	animation-delay: calc(var(--i) * 55ms + 0.2s);
}
@keyframes letra {
	to {
		transform: none;
		opacity: 1;
	}
}
.entra {
	opacity: 0;
	transform: translateY(30px);
}
.cargada .entra {
	animation: entra 1s var(--ease) forwards;
	animation-delay: var(--d, 0.6s);
}
@keyframes entra {
	to {
		opacity: 1;
		transform: none;
	}
}
.cargada .heroe-corte {
	animation: corte 1.1s var(--ease-golpe) both;
}
.cargada .heroe-corte.dos {
	animation-delay: 0.12s;
}
@keyframes corte {
	from {
		transform: rotate(-8deg) translateX(-110%);
	}
}
.cargada .heroe-personaje {
	animation: personaje 1.4s var(--ease) both 0.25s;
}
@keyframes personaje {
	from {
		opacity: 0;
		transform: translateX(90px);
	}
}

/* marquesina */
.marquesina {
	position: relative;
	z-index: 2;
	background: #fff;
	color: var(--negro);
	overflow: hidden;
	transform: rotate(-2deg) scale(1.04);
	margin: -24px 0 0;
	border-block: 4px solid var(--negro);
	box-shadow: 0 20px 60px -20px rgba(255, 45, 138, 0.6);
}
.marquesina > div {
	display: flex;
	width: max-content;
	animation: marq 34s linear infinite;
}
.marquesina span {
	padding: 16px 26px;
	font: 400 1.02rem / 1 var(--f-titulo);
	letter-spacing: 0.06em;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 26px;
}
.marquesina span::after {
	content: "";
	width: 11px;
	height: 11px;
	background: var(--rosa);
	transform: rotate(45deg);
}
@keyframes marq {
	to {
		transform: translateX(-50%);
	}
}

/* universos: dos mundos */
.universos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
}
.universo {
	position: relative;
	min-height: 540px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 34px;
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	background: var(--negro-2);
	transition:
		transform 0.5s var(--ease),
		box-shadow 0.5s;
}
.universo:hover {
	transform: translateY(-8px);
	color: #fff;
}
.universo .u-fondo {
	position: absolute;
	inset: 0;
	z-index: -3;
}
.universo .u-fondo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		transform 1.2s var(--ease),
		filter 0.6s;
	filter: saturate(0.8) brightness(0.55);
}
.universo:hover .u-fondo img {
	transform: scale(1.07);
	filter: saturate(1.1) brightness(0.7);
}
.universo::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		180deg,
		transparent 25%,
		rgba(9, 8, 11, 0.96) 82%
	);
}
.universo .u-tag {
	position: absolute;
	top: 28px;
	left: 28px;
}
.universo h3 {
	font-size: clamp(2.2rem, 4.4vw, 3.6rem);
	margin: 0 0 10px;
}
.universo p {
	color: #e2dae0;
	max-width: 460px;
}
.universo .u-cuenta {
	font: 400 0.9rem / 1 var(--f-pixel);
	color: var(--gris);
	letter-spacing: 0.08em;
	margin: 4px 0 22px;
}
.universo.dr {
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 60px),
		calc(100% - 60px) 100%,
		0 100%
	);
}
.universo.dr .u-raya {
	position: absolute;
	top: -10%;
	right: 50px;
	width: 90px;
	height: 120%;
	background: var(--rosa);
	transform: skewX(-14deg);
	z-index: -2;
	opacity: 0.85;
	transition:
		right 0.7s var(--ease),
		width 0.7s var(--ease);
}
.universo.dr:hover .u-raya {
	right: 90px;
	width: 130px;
}
.universo.dr .u-gif {
	position: absolute;
	right: 24px;
	top: 24px;
	width: 46%;
	z-index: -1;
	transform: rotate(4deg);
	border: 4px solid #fff;
	box-shadow: 8px 8px 0 var(--rosa);
	transition: transform 0.6s var(--ease);
}
.universo.dr:hover .u-gif {
	transform: rotate(0) scale(1.04);
}
.universo.pk {
	border-radius: 26px;
	background: radial-gradient(
		circle at 75% 25%,
		#2b4fb8 0,
		#13204a 50%,
		#0b0e16 100%
	);
}
.universo.pk::before {
	background: linear-gradient(
		180deg,
		transparent 38%,
		rgba(11, 14, 22, 0.97) 82%
	);
}
.universo.pk .juicio-rotulo {
	background: #ffcb05;
	color: #10131c;
	transform: none;
	border-radius: 99px;
	box-shadow: none;
}
.universo.pk .juicio-rotulo > span {
	transform: none;
}
.universo.pk .btn {
	--c: #ffcb05;
	--sobre-acento: #10131c;
	clip-path: none;
	border-radius: 99px;
}
.universo.pk:hover {
	box-shadow:
		0 0 0 2px #ffcb05,
		0 30px 80px -30px rgba(255, 203, 5, 0.45);
}
.pk-bola {
	position: absolute;
	z-index: -2;
	width: 440px;
	height: 440px;
	right: -130px;
	top: -130px;
	border-radius: 50%;
	border: 40px solid rgba(255, 255, 255, 0.06);
	transition: transform 1.4s var(--ease);
}
.pk-bola::before {
	content: "";
	position: absolute;
	left: -40px;
	right: -40px;
	top: 50%;
	height: 40px;
	margin-top: -20px;
	background: rgba(255, 255, 255, 0.06);
}
.pk-bola::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 120px;
	height: 120px;
	margin: -60px;
	border-radius: 50%;
	border: 30px solid rgba(255, 255, 255, 0.06);
	background: #13204a;
}
.universo.pk:hover .pk-bola {
	transform: rotate(140deg);
}
.pk-sprites {
	position: absolute;
	top: 90px;
	right: 30px;
	display: grid;
	grid-template-columns: repeat(3, auto);
	gap: 6px 22px;
	align-items: end;
	z-index: -1;
}
.pk-sprites img {
	image-rendering: pixelated;
	width: auto;
	height: 80px;
	animation: flota 3s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * -0.5s);
}
@keyframes flota {
	50% {
		transform: translateY(-10px);
	}
}

/* destacado */
.destacado {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin: clamp(30px, 6vw, 80px) 0;
}
.destacado-fondo {
	position: absolute;
	inset: -12% 0;
	z-index: -2;
	will-change: transform;
}
.destacado-fondo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.32) saturate(1.2);
}
.destacado::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(
		90deg,
		var(--negro) 8%,
		rgba(9, 8, 11, 0.6) 60%,
		rgba(255, 45, 138, 0.3)
	);
}
.destacado-in {
	max-width: var(--ancho);
	margin: 0 auto;
	padding: clamp(80px, 12vw, 160px) clamp(18px, 4vw, 40px);
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
}
.destacado h2 {
	font-size: clamp(2.6rem, 7vw, 5.6rem);
	margin: 22px 0 8px;
	line-height: 0.92;
}
.destacado h2 small {
	display: block;
	font: 900 clamp(1rem, 2vw, 1.5rem) / 1.2 var(--f-rotulo);
	color: var(--rosa);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	margin-top: 12px;
}
.destacado p {
	color: #e2dae0;
	max-width: 560px;
}
.destacado .cifras {
	padding: 0;
	margin: 30px 0;
	grid-template-columns: repeat(3, 1fr);
}
.destacado-marco {
	position: relative;
	transform: rotate(3deg);
	transition: transform 0.6s var(--ease);
}
.destacado-marco:hover {
	transform: rotate(0) scale(1.02);
}
.destacado-marco img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 6px solid #fff;
	box-shadow:
		18px 18px 0 var(--rosa),
		var(--sombra);
}
.destacado-marco .juicio-rotulo {
	position: absolute;
	left: -20px;
	bottom: -18px;
}

/* cifras */
.cifras {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2px;
	max-width: var(--ancho);
	margin: 0 auto;
	padding: 0 clamp(18px, 4vw, 40px);
}
.cifra {
	background: rgba(18, 16, 22, 0.85);
	padding: 26px 22px;
	border-top: 3px solid var(--acento);
}
.cifra b {
	display: block;
	font: 400 clamp(2rem, 4vw, 3.2rem) / 1 var(--f-titulo);
	color: #fff;
	margin-bottom: 8px;
	font-variant-numeric: tabular-nums;
}
.cifra span {
	color: var(--gris);
	font-size: 0.9rem;
	line-height: 1.4;
	display: block;
}

/* tira de capturas */
.tira {
	overflow: hidden;
	padding: 10px 0 30px;
}
.tira-pista {
	display: flex;
	gap: 18px;
	width: max-content;
	animation: marq 70s linear infinite;
}
.tira:hover .tira-pista {
	animation-play-state: paused;
}
.tira figure {
	margin: 0;
	width: clamp(240px, 26vw, 380px);
	flex: none;
	position: relative;
	overflow: hidden;
	clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.tira img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition:
		transform 0.8s var(--ease),
		filter 0.5s;
	filter: grayscale(0.6);
}
.tira figure:hover img {
	transform: scale(1.08);
	filter: none;
}
.tira figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	padding: 30px 18px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
	font: 700 0.76rem / 1.2 var(--f-rotulo);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* próximos */
.proximos {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 12px;
}
.proximos li a,
.proximos li > div {
	display: grid;
	grid-template-columns: 150px 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 20px 24px;
	background: var(--negro-2);
	border-left: 4px solid var(--acento);
	color: #fff;
	text-decoration: none;
	transition:
		background 0.3s,
		transform 0.3s var(--ease);
}
.proximos li a:hover {
	background: var(--negro-3);
	transform: translateX(8px);
	color: #fff;
}
.prox-fecha {
	font: 400 1rem / 1.1 var(--f-pixel);
	color: var(--acento);
}
.prox-fecha.sin {
	color: var(--gris-2);
}
.proximos h3 {
	margin: 0 0 4px;
	font-size: 1.3rem;
}
.proximos p {
	margin: 0;
	color: var(--gris);
	font-size: 0.95rem;
}
.prox-vacio {
	color: var(--gris);
}

/* banner cómo jugar */
.banner-deck {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 30px;
	align-items: center;
	padding: 34px 38px;
	background: linear-gradient(110deg, var(--negro-3), var(--negro-2));
	border: 1px solid var(--linea);
	color: #fff;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.banner-deck::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: var(--acento);
	transition:
		width 0.6s var(--ease),
		opacity 0.6s;
	z-index: -1;
}
.banner-deck:hover::before {
	width: 100%;
	opacity: 0.14;
}
.banner-deck h2 {
	font-size: clamp(1.4rem, 3vw, 2.2rem);
	margin: 0 0 6px;
}
.banner-deck p {
	margin: 0;
	color: var(--gris);
}
.banner-deck:hover {
	color: #fff;
}
.portatil {
	width: 96px;
	height: 50px;
	border: 4px solid #fff;
	border-radius: 16px;
	position: relative;
	display: block;
}
.portatil::before {
	content: "";
	position: absolute;
	inset: 7px 22px;
	background: var(--acento);
	border-radius: 2px;
}
.portatil i {
	position: absolute;
	top: 50%;
	width: 8px;
	height: 8px;
	margin-top: -4px;
	border-radius: 50%;
	background: #fff;
}
.portatil i:first-child {
	left: 6px;
}
.portatil i:last-child {
	right: 6px;
}

/* =====================================================================
   CABECERAS DE PÁGINAS INTERIORES
   ===================================================================== */
.pag-heroe,
.proy-heroe {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: 150px clamp(18px, 5vw, 70px) 80px;
	min-height: 62vh;
	display: flex;
	align-items: flex-end;
}
.pag-heroe.bajo {
	min-height: 48vh;
}
.proy-fondo {
	position: absolute;
	inset: -6% 0;
	z-index: -3;
	background: var(--negro-2) center / cover no-repeat;
	will-change: transform;
}
.proy-fondo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.4) saturate(1.15);
}
.pag-heroe::after,
.proy-heroe::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(180deg, rgba(9, 8, 11, 0.3), var(--negro) 96%),
		linear-gradient(100deg, rgba(255, 45, 138, 0.32), transparent 55%);
	pointer-events: none;
}
body[data-tema="pokemon"] .pag-heroe::after,
body[data-tema="pokemon"] .proy-heroe::after {
	background:
		linear-gradient(180deg, rgba(11, 14, 22, 0.2), var(--negro) 96%),
		radial-gradient(
			circle at 85% 20%,
			rgba(106, 168, 255, 0.35),
			transparent 50%
		);
}
.abstracto-fondo {
	background:
		repeating-linear-gradient(
			-55deg,
			transparent 0 46px,
			rgba(255, 45, 138, 0.07) 46px 48px
		),
		radial-gradient(circle at 80% 30%, rgba(255, 45, 138, 0.3), transparent 45%),
		var(--negro-2);
}
body[data-tema="pokemon"] .abstracto-fondo {
	background:
		radial-gradient(
			circle at 1px 1px,
			rgba(255, 255, 255, 0.09) 1px,
			transparent 0
		)
		0 0 / 22px 22px,
		radial-gradient(circle at 80% 30%, rgba(255, 203, 5, 0.2), transparent 45%),
		var(--negro-2);
}
.proy-texto {
	position: relative;
	max-width: var(--ancho);
	width: 100%;
	margin: 0 auto;
}
.pag-heroe h1 {
	font-size: clamp(2.6rem, 9vw, 6.6rem);
	margin: 6px 0 16px;
	text-shadow: 5px 5px 0 var(--acento);
}
body[data-tema="pokemon"] .pag-heroe h1 {
	text-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
}
.intro {
	font-size: 1.15rem;
	color: #e6dee3;
	max-width: 680px;
}
.cuenta {
	font: 400 0.95rem / 1 var(--f-pixel);
	color: var(--acento);
	letter-spacing: 0.1em;
}
.muestra-deco {
	position: absolute;
	right: clamp(0px, 6vw, 90px);
	bottom: 0;
	height: 86%;
	z-index: -1;
	pointer-events: none;
}
.muestra-deco img {
	height: 100%;
	width: auto;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}
.muestra-deco.sprites {
	display: flex;
	align-items: flex-end;
	gap: 14px;
	height: auto;
	bottom: 60px;
}
.muestra-deco.sprites img {
	height: 110px;
	image-rendering: pixelated;
	animation: flota 3s ease-in-out infinite;
}
.muestra-deco.sprites img:nth-child(2) {
	animation-delay: -1s;
	height: 140px;
}
.muestra-deco.sprites img:nth-child(3) {
	animation-delay: -2s;
}

/* migas */
.migas ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0 0 22px;
	font: 700 0.74rem / 1 var(--f-rotulo);
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.migas li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--acento);
}
.migas a {
	color: var(--gris);
	text-decoration: none;
}
.migas a:hover {
	color: #fff;
}
.migas span {
	color: #fff;
}

/* cabecera de proyecto */
.proy-heroe {
	min-height: 94vh;
}
.proy-rejilla {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 50px;
	align-items: end;
	max-width: var(--ancho);
	width: 100%;
	margin: 0 auto;
}
.titulo-proy {
	font-size: clamp(2.6rem, 7.2vw, 6rem);
	margin: 18px 0 18px;
	line-height: 0.92;
	text-shadow: 5px 5px 0 rgba(255, 45, 138, 0.85);
}
body[data-tema="pokemon"] .titulo-proy {
	text-shadow: 0 6px 0 rgba(0, 0, 0, 0.45);
}
.titulo-proy small {
	display: block;
	margin-top: 16px;
	font: 900 clamp(1rem, 2.2vw, 1.6rem) / 1.1 var(--f-rotulo);
	color: var(--acento);
	letter-spacing: 0.24em;
	text-transform: uppercase;
	text-shadow: none;
}
.etiquetas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
}
.etiq {
	padding: 7px 12px;
	font: 700 0.7rem / 1 var(--f-rotulo);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: var(--radio);
}
.etiq.fuerte {
	background: var(--acento);
	color: var(--sobre-acento);
	border-color: var(--acento);
}
.proy-portada {
	margin: 0;
	position: relative;
}
.proy-portada img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border: 5px solid #fff;
	box-shadow:
		14px 14px 0 var(--acento),
		var(--sombra);
	border-radius: var(--radio);
	transform: rotate(2.5deg);
	transition: transform 0.6s var(--ease);
}
.proy-portada:hover img {
	transform: rotate(0) scale(1.02);
}
.proy-portada .abstracto {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: var(--radio);
	border: 2px solid var(--linea);
}
.proy-heroe .heroe-sprites {
	margin-top: 26px;
}
.proy-heroe .heroe-sprites img {
	height: 64px;
}
.atajos {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

/* =====================================================================
   DESCARGA DESTACADA
   ===================================================================== */
.descarga {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--acento);
	color: var(--sobre-acento);
	clip-path: polygon(0 40px, 100% 0, 100% calc(100% - 40px), 0 100%);
	padding: clamp(90px, 12vw, 140px) clamp(18px, 4vw, 40px);
	scroll-margin-top: 40px;
}
body[data-tema="pokemon"] .descarga {
	clip-path: none;
	border-radius: 32px;
	margin: 0 clamp(12px, 3vw, 40px);
}
.descarga::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: repeating-linear-gradient(
		-45deg,
		transparent 0 22px,
		rgba(0, 0, 0, 0.07) 22px 24px
	);
}
.descarga .fondo-texto {
	position: absolute;
	z-index: -1;
	right: -2%;
	bottom: -8%;
	font: 400 clamp(6rem, 20vw, 17rem) / 0.8 var(--f-titulo);
	color: rgba(0, 0, 0, 0.09);
	pointer-events: none;
	white-space: nowrap;
}
.descarga-in {
	max-width: var(--ancho);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 40px;
	align-items: center;
}
.descarga .rotulo {
	color: var(--sobre-acento);
}
.descarga h2 {
	color: var(--sobre-acento);
	font-size: clamp(2.4rem, 6.4vw, 5rem);
	margin: 0 0 10px;
}
.descarga p {
	margin: 0;
	font-weight: 600;
	max-width: 560px;
}
.descarga b {
	color: var(--sobre-acento);
}
.ficha-rapida {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 22px;
	font: 400 0.95rem / 1 var(--f-pixel);
}
.btn-mega {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	padding: 32px 90px 32px 44px;
	min-width: 330px;
	background: var(--negro);
	color: #fff;
	text-decoration: none;
	position: relative;
	font: 400 clamp(1.7rem, 3vw, 2.4rem) / 1 var(--f-titulo);
	letter-spacing: 0.02em;
	clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
	transition:
		transform 0.4s var(--ease),
		box-shadow 0.4s;
}
body[data-tema="pokemon"] .btn-mega {
	clip-path: none;
	border-radius: 22px;
}
.btn-mega small {
	font: 700 0.76rem / 1 var(--f-rotulo);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--acento);
}
.btn-mega .fl {
	position: absolute;
	right: 36px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.8rem;
	transition: transform 0.4s var(--ease);
}
.btn-mega:hover {
	color: #fff;
	transform: translateY(-4px) rotate(-1deg);
}
.btn-mega:hover .fl {
	transform: translate(8px, -50%);
}
.btn-mega::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		100deg,
		transparent 30%,
		rgba(255, 255, 255, 0.25) 50%,
		transparent 70%
	);
	transform: translateX(-100%);
	animation: brillo 3.5s var(--ease) infinite 1s;
}
@keyframes brillo {
	40%,
	100% {
		transform: translateX(100%);
	}
}
.descarga-acc {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.descarga-acc a:not(.btn-mega) {
	color: var(--sobre-acento);
	font-weight: 700;
}
.apoyo {
	font-size: 0.85rem;
	opacity: 0.85;
}

/* presentación */
.presenta-caja {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 50px;
	align-items: start;
}
.presenta-txt {
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	line-height: 1.6;
	color: #ece5ea;
}
.presenta-txt::first-letter {
	font: 400 3.4em / 0.8 var(--f-titulo);
	float: left;
	margin: 8px 12px 0 0;
	color: var(--acento);
}
.version {
	color: var(--gris);
	font-size: 0.9rem;
	margin-top: 14px;
}

/* tarjetas */
.tarjetas {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.tarjeta {
	position: relative;
	background: var(--negro-2);
	padding: 30px 28px;
	overflow: hidden;
	border: 1px solid var(--linea);
	border-radius: var(--radio);
	transition:
		transform 0.4s var(--ease),
		border-color 0.4s;
	isolation: isolate;
}
.tarjeta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		160deg,
		transparent 40%,
		rgba(255, 45, 138, 0.18)
	);
	opacity: 0;
	transition: opacity 0.4s;
	z-index: -1;
}
body[data-tema="pokemon"] .tarjeta::before {
	background: linear-gradient(160deg, transparent 40%, rgba(255, 203, 5, 0.14));
}
.tarjeta:hover {
	transform: translateY(-6px);
	border-color: var(--acento);
}
.tarjeta:hover::before {
	opacity: 1;
}
.tarjeta .n {
	font: 400 0.9rem / 1 var(--f-pixel);
	color: var(--acento);
	display: block;
	margin-bottom: 18px;
}
.tarjeta p {
	color: var(--gris);
	margin: 0;
}

/* fichas de colección */
.fichas-col {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}
.ficha {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--negro-2);
	color: #fff;
	text-decoration: none;
	overflow: hidden;
	border-radius: var(--radio);
	transition:
		transform 0.45s var(--ease),
		box-shadow 0.45s;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - var(--corte)),
		calc(100% - var(--corte)) 100%,
		0 100%
	);
}
a.ficha:hover {
	transform: translateY(-8px);
	color: #fff;
	box-shadow:
		inset 0 0 0 2px var(--acento),
		var(--sombra);
}
.ficha-img {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--negro-3);
}
.ficha-img > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--ease);
}
a.ficha:hover .ficha-img > img {
	transform: scale(1.08) rotate(0.5deg);
}
.ficha-img .estado {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
}
.ficha-cuerpo {
	padding: 22px 24px 26px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.ficha-cuerpo h3 {
	font-size: 1.6rem;
	margin: 0;
}
.ficha-cuerpo h3 small {
	display: block;
	font: 700 0.78rem / 1.3 var(--f-rotulo);
	color: var(--acento);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin-top: 6px;
}
.ficha-cuerpo p {
	color: var(--gris);
	margin: 0 0 8px;
	font-size: 0.95rem;
}
.ficha-cuerpo .btn,
.ficha-cuerpo .espera {
	margin-top: auto;
	align-self: flex-start;
}
.espera {
	font: 400 0.9rem / 1 var(--f-pixel);
	color: var(--gris-2);
}
.progreso {
	height: 6px;
	background: var(--negro-3);
	border-radius: 99px;
	overflow: hidden;
}
.progreso i {
	display: block;
	height: 100%;
	width: var(--p);
	background: var(--acento);
}
.abstracto {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at 30% 30%, var(--negro-3), var(--negro));
	overflow: hidden;
}
.abstracto > span {
	font: 400 7rem / 1 var(--f-titulo);
	color: var(--acento);
	opacity: 0.9;
}
.abstracto > i {
	position: absolute;
	bottom: 14px;
	right: 16px;
	font: 400 0.8rem / 1 var(--f-pixel);
	color: var(--gris);
	font-style: normal;
}
.abstracto .muestra-sprites {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 6px;
	padding-bottom: 22px;
}
.abstracto .muestra-sprites img {
	height: 86px;
	width: auto;
	image-rendering: pixelated;
	animation: flota 3s ease-in-out infinite;
}
.abstracto .muestra-sprites img:nth-child(2) {
	animation-delay: -1s;
}
.abstracto .muestra-sprites img:nth-child(3) {
	animation-delay: -2s;
}

/* buscador */
.buscador {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr auto;
	gap: 14px;
	align-items: end;
	margin-bottom: 14px;
	padding: 20px;
	background: var(--negro-2);
	border: 1px solid var(--linea);
	border-radius: var(--radio);
}
.campo span {
	display: block;
	font: 700 0.72rem / 1 var(--f-rotulo);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--gris);
	margin-bottom: 8px;
}
.campo input,
.campo select {
	width: 100%;
	padding: 12px 14px;
	background: var(--negro);
	color: #fff;
	border: 1px solid var(--linea);
	font: inherit;
	font-size: 0.95rem;
	border-radius: calc(var(--radio) / 2);
}
.campo input:focus,
.campo select:focus {
	border-color: var(--acento);
	outline: none;
	box-shadow: 0 0 0 3px rgba(255, 45, 138, 0.3);
}
.resultado {
	color: var(--gris);
	font-size: 0.9rem;
	margin-bottom: 26px;
}
.vacio {
	text-align: center;
	padding: 60px 20px;
	color: var(--gris);
}
.aviso-marca {
	margin-top: 60px;
	color: var(--gris-2);
	font-size: 0.85rem;
	border-top: 1px solid var(--linea);
	padding-top: 20px;
}

/* novedades */
.novedades {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 2px solid var(--linea);
}
.novedades > li {
	position: relative;
	padding: 0 0 30px 34px;
}
.novedades > li::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 4px;
	width: 16px;
	height: 16px;
	background: var(--acento);
	transform: rotate(45deg);
}
.nov-cab {
	display: flex;
	gap: 18px;
	align-items: baseline;
	margin-bottom: 12px;
}
.nov-cab b {
	font: 400 1.4rem / 1 var(--f-titulo);
}
.nov-cab span {
	font: 400 0.9rem / 1 var(--f-pixel);
	color: var(--acento);
}
.novedades ul {
	margin: 0;
	padding-left: 18px;
	color: var(--gris);
}
.novedades ul li {
	padding: 3px 0;
}

/* requisitos, pestañas, pasos */
.requisitos {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 30px;
}
.requisitos li {
	padding: 10px 16px;
	background: var(--negro-2);
	border: 1px solid var(--linea);
	font-size: 0.92rem;
	color: var(--gris);
	border-radius: var(--radio);
}
.pestanas {
	background: var(--negro-2);
	border: 1px solid var(--linea);
	border-radius: var(--radio);
	overflow: hidden;
}
.pest-botones {
	display: flex;
	border-bottom: 1px solid var(--linea);
	overflow-x: auto;
}
.pest-botones button {
	flex: 1;
	min-width: 120px;
	padding: 18px;
	background: none;
	border: 0;
	color: var(--gris);
	font: 900 0.8rem / 1 var(--f-rotulo);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	position: relative;
}
.pest-botones button::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--acento);
	transform: scaleX(0);
	transition: transform 0.35s var(--ease);
}
.pest-botones button[aria-selected="true"] {
	color: #fff;
}
.pest-botones button[aria-selected="true"]::after {
	transform: scaleX(1);
}
.pest {
	padding: 30px clamp(18px, 3vw, 36px);
}
.pasos {
	list-style: none;
	counter-reset: p;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 14px;
}
.pasos li {
	counter-increment: p;
	display: grid;
	grid-template-columns: 46px 1fr;
	gap: 16px;
	align-items: center;
}
.pasos li::before {
	content: counter(p, decimal-leading-zero);
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	background: var(--acento);
	color: var(--sobre-acento);
	font: 400 1rem / 1 var(--f-titulo);
	clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}
body[data-tema="pokemon"] .pasos li::before {
	clip-path: none;
	border-radius: 50%;
}

/* acordeón */
.acordeon {
	display: grid;
	gap: 8px;
}
.acordeon details {
	background: var(--negro-2);
	border: 1px solid var(--linea);
	border-radius: var(--radio);
	transition: border-color 0.3s;
}
.acordeon details[open] {
	border-color: var(--acento);
}
.acordeon summary {
	cursor: pointer;
	padding: 20px 56px 20px 24px;
	font-weight: 700;
	list-style: none;
	position: relative;
}
.acordeon summary::-webkit-details-marker {
	display: none;
}
.acordeon summary::after {
	content: "+";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font: 400 1.6rem / 1 var(--f-titulo);
	color: var(--acento);
	transition: transform 0.3s var(--ease);
}
.acordeon details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}
.resp {
	padding: 0 24px 20px;
	color: var(--gris);
}

/* galería */
.filtros {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 26px;
}
.filtros button {
	padding: 10px 18px;
	background: transparent;
	color: var(--gris);
	border: 1px solid var(--linea);
	cursor: pointer;
	font: 700 0.76rem / 1 var(--f-rotulo);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-radius: var(--radio);
	transition: all 0.25s;
}
.filtros button:hover {
	color: #fff;
	border-color: #fff;
}
.filtros button[aria-selected="true"] {
	background: var(--acento);
	color: var(--sobre-acento);
	border-color: var(--acento);
}
.rejilla {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-auto-flow: dense;
	gap: 12px;
}
.rejilla button {
	padding: 0;
	border: 0;
	background: var(--negro-3);
	cursor: zoom-in;
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--radio);
}
.rejilla button.grande {
	grid-column: span 2;
	grid-row: span 2;
}
.rejilla img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		transform 0.7s var(--ease),
		filter 0.4s;
}
.rejilla button:hover img {
	transform: scale(1.08);
}
.rejilla button::after {
	content: attr(data-t);
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 26px 12px 10px;
	text-align: left;
	color: #fff;
	font: 700 0.74rem / 1.2 var(--f-rotulo);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
	transform: translateY(100%);
	transition: transform 0.35s var(--ease);
}
.rejilla button:hover::after,
.rejilla button:focus-visible::after {
	transform: none;
}
.rejilla button[hidden] {
	display: none;
}
.rejilla-muestras {
	margin-top: 50px;
}
.nota-muestra {
	font: 400 0.82rem / 1.3 var(--f-pixel);
	color: var(--gris-2);
	margin-bottom: 12px;
}

/* visor */
.visor {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba(5, 4, 7, 0.95);
	backdrop-filter: blur(8px);
	display: grid;
	grid-template-columns: 70px 1fr 70px;
	align-items: center;
}
.visor[hidden] {
	display: none;
}
.visor figure {
	margin: 0;
	text-align: center;
}
.visor img {
	max-height: 82vh;
	margin: 0 auto;
	border: 3px solid #fff;
}
.visor figcaption {
	margin-top: 12px;
	color: var(--gris);
}
.visor button {
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 2.6rem;
	height: 70px;
}
.visor button:hover {
	color: var(--acento);
}
.v-cerrar {
	position: absolute;
	top: 12px;
	right: 18px;
}
.v-cerrar::before {
	content: "\00d7";
}
.v-prev::before {
	content: "\2039";
}
.v-sig::before {
	content: "\203a";
}
.v-cuenta {
	position: absolute;
	top: 26px;
	left: 26px;
	font: 400 0.9rem / 1 var(--f-pixel);
	color: var(--gris);
}

/* comparador */
.comparadores {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.comparador {
	margin: 0;
}
.comp-caja {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--negro-3);
	border-radius: var(--radio);
	--x: 50%;
}
.comp-caja img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.comp-caja .es {
	clip-path: inset(0 0 0 var(--x));
}
.comp-caja .linea {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--x);
	width: 3px;
	margin-left: -1px;
	background: var(--acento);
	box-shadow: 0 0 12px var(--acento);
	pointer-events: none;
}
.comp-caja .linea::after {
	content: "\2194";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 38px;
	height: 38px;
	margin: -19px;
	display: grid;
	place-items: center;
	background: var(--acento);
	color: var(--sobre-acento);
	font-weight: 900;
	border-radius: 50%;
}
.comp-caja input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: ew-resize;
	margin: 0;
}
.comp-caja .lado {
	position: absolute;
	top: 10px;
	font: 400 0.72rem / 1 var(--f-pixel);
	background: rgba(0, 0, 0, 0.75);
	padding: 5px 8px;
	pointer-events: none;
}
.comp-caja .lado.l-en {
	left: 10px;
}
.comp-caja .lado.l-es {
	right: 10px;
}
.comparador figcaption {
	margin-top: 10px;
	color: var(--gris);
	font-size: 0.9rem;
}
.pares {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-top: 24px;
}
.pares button {
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
	overflow: hidden;
	border-radius: var(--radio);
}
.pares img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}
.pares button:hover img {
	transform: scale(1.06);
}

/* lo que se queda en inglés */
.ingles {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
.ingles li {
	display: grid;
	gap: 4px;
	padding: 24px;
	background: var(--negro-2);
	border-left: 3px solid var(--acento);
	transition: transform 0.35s var(--ease);
}
.ingles li:hover {
	transform: translateX(6px);
}
.ingles .en {
	font: 400 1.5rem / 1 var(--f-titulo);
	color: transparent;
	-webkit-text-stroke: 1px var(--acento);
	margin-bottom: 8px;
}
.ingles li > span:last-child {
	color: var(--gris);
	font-size: 0.95rem;
}

/* reparto (muestras) */
.reparto {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}
.reparto figure {
	margin: 0;
	position: relative;
	overflow: hidden;
	background: var(--negro-2);
	aspect-ratio: 3 / 4;
	clip-path: polygon(
		0 0,
		100% 0,
		100% calc(100% - 30px),
		calc(100% - 30px) 100%,
		0 100%
	);
}
.reparto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: left top;
	transition:
		transform 1s var(--ease),
		filter 0.5s;
	filter: grayscale(0.7);
}
.reparto img.centro {
	object-position: center;
}
.reparto figure:hover img {
	transform: scale(1.06);
	filter: none;
}
.reparto figcaption {
	position: absolute;
	left: 14px;
	bottom: 18px;
}

/* créditos y ficha */
.creditos,
.ficha-datos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2px;
	margin: 0;
}
.creditos div,
.ficha-datos div {
	background: var(--negro-2);
	padding: 20px 22px;
}
.creditos dt,
.ficha-datos dt {
	font: 700 0.72rem / 1 var(--f-rotulo);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--acento);
	margin-bottom: 8px;
}
.creditos dd,
.ficha-datos dd {
	margin: 0;
}
.volver {
	margin-top: 40px;
}

/* quién soy */
.sobre {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 60px;
	align-items: start;
}
.sobre-texto p {
	font-size: 1.12rem;
	color: #e6dee3;
}
.firma {
	display: flex;
	align-items: center;
	gap: 12px;
	font: 400 1.4rem / 1 var(--f-titulo);
	margin-top: 30px;
}
.firma img {
	width: 44px;
}
.reglas {
	list-style: none;
	padding: 0;
	margin: 0;
	background: var(--negro-2);
	border: 1px solid var(--linea);
}
.reglas li {
	padding: 18px 24px;
	border-bottom: 1px solid var(--linea);
}
.reglas li:last-child {
	border: 0;
}
.reglas-titulo {
	display: flex;
	justify-content: space-between;
	background: var(--acento);
	color: var(--sobre-acento);
	font: 400 1rem / 1 var(--f-titulo);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.reglas b {
	display: block;
	font: 400 1.05rem / 1.2 var(--f-titulo);
	margin-bottom: 4px;
}
.reglas span {
	color: var(--gris);
	font-size: 0.93rem;
}
.redes {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.red {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 20px;
	background: var(--negro-2);
	border: 1px dashed var(--linea);
	color: #fff;
	text-decoration: none;
	border-radius: var(--radio);
	transition:
		border-color 0.3s,
		transform 0.3s var(--ease);
}
.red:hover {
	border-color: var(--acento);
	color: #fff;
	transform: translateY(-3px);
}
.red .ini {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	background: var(--negro-3);
	font: 400 1rem / 1 var(--f-titulo);
	color: var(--acento);
	flex: none;
}
.red small {
	display: block;
	color: var(--gris-2);
	font-size: 0.8rem;
}
.nota-contacto {
	color: var(--gris);
	margin-top: 20px;
}
.todo-nota {
	display: inline-block;
	margin-top: 14px;
	padding: 6px 10px;
	border: 1px dashed #5a5262;
	color: var(--gris-2);
	font: 400 0.76rem / 1.3 var(--f-pixel);
	letter-spacing: 0.04em;
}

/* cómo jugar */
.indice-guia {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}
.indice-guia a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 24px;
	background: var(--negro-2);
	border: 1px solid var(--linea);
	color: #fff;
	text-decoration: none;
	transition:
		border-color 0.3s,
		transform 0.3s var(--ease);
	border-radius: var(--radio);
}
.indice-guia a:hover {
	border-color: var(--acento);
	transform: translateY(-4px);
	color: #fff;
}
.indice-guia .n {
	font: 400 1.8rem / 1 var(--f-titulo);
	color: var(--acento);
}
.indice-guia small {
	color: var(--gris);
}
.guia-bloque {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 40px;
	align-items: start;
}
.lista-simple {
	padding-left: 20px;
	color: var(--gris);
}
.lista-simple li {
	margin-bottom: 8px;
}
.caja-nota {
	background: var(--negro-2);
	border-left: 4px solid var(--acento);
	padding: 24px 26px;
	color: var(--gris);
}

/* legal */
.legal {
	max-width: 780px;
}
.legal h2 {
	font-size: 1.6rem;
	margin-top: 44px;
}
.legal p,
.legal li {
	color: #ddd6db;
}
.fecha-act {
	font: 400 0.9rem / 1 var(--f-pixel);
	color: var(--acento);
}

/* pie */
.pie {
	position: relative;
	margin-top: 60px;
	background: var(--negro-2);
	border-top: 1px solid var(--linea);
	overflow: hidden;
}
.pie-gigante {
	font: 400 clamp(3.6rem, 16vw, 15rem) / 0.8 var(--f-titulo);
	color: transparent;
	-webkit-text-stroke: 1px #2f2a36;
	white-space: nowrap;
	text-align: center;
	margin: 0;
	padding-top: 50px;
	user-select: none;
}
.pie-in {
	max-width: var(--ancho);
	margin: 0 auto;
	padding: 50px clamp(18px, 4vw, 40px) 40px;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
}
.pie h4 {
	font: 700 0.74rem / 1 var(--f-rotulo);
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--acento);
	margin: 0 0 16px;
}
.pie ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}
.pie a {
	color: var(--gris);
	text-decoration: none;
}
.pie a:hover {
	color: #fff;
}
.pie-in > div > p {
	color: var(--gris);
	font-size: 0.95rem;
}
.pie-legal {
	max-width: var(--ancho);
	margin: 0 auto;
	padding: 22px clamp(18px, 4vw, 40px) 40px;
	border-top: 1px solid var(--linea);
	color: var(--gris-2);
	font-size: 0.82rem;
}
.pie-legal b {
	color: var(--gris);
}

/* aviso emergente */
.aviso-flotante {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 120;
	transform: translate(-50%, 160%);
	background: #fff;
	color: var(--negro);
	padding: 14px 22px;
	font-weight: 700;
	box-shadow: 6px 6px 0 var(--acento);
	transition: transform 0.4s var(--ease);
	max-width: calc(100% - 32px);
}
.aviso-flotante.ver {
	transform: translate(-50%, 0);
}

/* =====================================================================
   MOVIMIENTO AL HACER SCROLL
   ===================================================================== */
.js .revela {
	opacity: 0;
	transform: translateY(40px);
	transition:
		opacity 0.9s var(--ease),
		transform 0.9s var(--ease);
	transition-delay: var(--d, 0s);
}
.js .revela.izq {
	transform: translateX(-50px);
}
.js .revela.der {
	transform: translateX(50px);
}
.js .revela.visto {
	opacity: 1;
	transform: none;
}
.js .corta {
	clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
	transition: clip-path 1.1s var(--ease-golpe);
	transition-delay: var(--d, 0s);
}
.js .corta.visto {
	clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1000px) {
	.universos,
	.destacado-in,
	.presenta-caja,
	.proy-rejilla,
	.sobre,
	.guia-bloque,
	.descarga-in {
		grid-template-columns: 1fr;
	}
	.tarjetas,
	.comparadores,
	.reparto {
		grid-template-columns: 1fr 1fr;
	}
	.cifras {
		grid-template-columns: 1fr 1fr;
	}
	.rejilla {
		grid-template-columns: repeat(3, 1fr);
	}
	.redes,
	.indice-guia {
		grid-template-columns: 1fr 1fr;
	}
	.pie-in {
		grid-template-columns: 1fr 1fr;
	}
	.buscador {
		grid-template-columns: 1fr 1fr;
	}
	.proy-portada {
		max-width: 560px;
	}
	.heroe-personaje {
		opacity: 0.55;
	}
}
@media (max-width: 820px) {
	.hamburguesa {
		display: block;
		z-index: 2;
	}
	.nav {
		position: fixed;
		inset: 0;
		background: var(--negro);
		display: grid;
		place-items: center;
		clip-path: circle(0 at calc(100% - 40px) 36px);
		transition:
			clip-path 0.6s var(--ease-golpe),
			visibility 0s 0.6s;
		visibility: hidden;
	}
	.nav.abierto {
		clip-path: circle(150% at calc(100% - 40px) 36px);
		visibility: visible;
		transition: clip-path 0.6s var(--ease-golpe);
	}
	.nav ul {
		flex-direction: column;
		gap: 10px;
	}
	.nav a {
		font: 400 1.8rem / 1.2 var(--f-titulo);
		letter-spacing: 0;
		text-transform: none;
		color: #fff;
		padding: 8px 22px;
	}
	body.menu-abierto {
		overflow: hidden;
	}
}
@media (max-width: 640px) {
	body {
		font-size: 16px;
	}
	.tarjetas,
	.comparadores,
	.ingles,
	.cifras,
	.redes,
	.indice-guia,
	.pie-in,
	.buscador,
	.pares {
		grid-template-columns: 1fr;
	}
	.reparto {
		grid-template-columns: 1fr 1fr;
		gap: 10px;
	}
	.destacado .cifras {
		grid-template-columns: 1fr 1fr 1fr;
	}
	.destacado .cifra {
		padding: 14px 10px;
	}
	.destacado .cifra b {
		font-size: 1.5rem;
	}
	.destacado .cifra span {
		font-size: 0.78rem;
	}
	.rejilla {
		grid-template-columns: 1fr 1fr;
	}
	.rejilla button.grande {
		grid-row: span 1;
	}
	.universo {
		min-height: 460px;
		padding: 24px;
	}
	.universo.dr .u-gif {
		width: 70%;
	}
	.banner-deck {
		grid-template-columns: 1fr;
		padding: 26px;
	}
	.proximos li a,
	.proximos li > div {
		grid-template-columns: 1fr;
		gap: 6px;
	}
	.heroe {
		padding-bottom: 130px;
		align-items: end;
	}
	.heroe-personaje {
		right: -34vw;
		height: 74%;
		opacity: 0.5;
	}
	.heroe-corte {
		height: 80px;
		top: 72%;
	}
	.heroe-corte.dos {
		top: calc(72% + 96px);
	}
	.heroe-pie .heroe-sprites {
		display: none;
	}
	.btn-mega {
		min-width: 0;
		width: 100%;
		padding: 26px 70px 26px 28px;
	}
	.pk-sprites {
		right: 14px;
		top: 80px;
		gap: 4px 12px;
	}
	.pk-sprites img {
		height: 58px;
	}
	.visor {
		grid-template-columns: 44px 1fr 44px;
	}
	.marquesina span {
		font-size: 0.86rem;
		padding: 12px 16px;
	}
	.proy-heroe {
		min-height: 0;
		padding-top: 120px;
	}
	.muestra-deco {
		opacity: 0.3;
	}
	.muestra-deco.sprites {
		opacity: 0.6;
		bottom: 20px;
	}
	.muestra-deco.sprites img {
		height: 70px;
	}
	.muestra-deco.sprites img:nth-child(2) {
		height: 90px;
	}
}

/* =====================================================================
   ACCESIBILIDAD: MOVIMIENTO REDUCIDO
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.letras > span,
	.entra {
		opacity: 1 !important;
		transform: none !important;
	}
	.js .revela,
	.js .corta {
		opacity: 1;
		transform: none;
		clip-path: none;
	}
	.marquesina > div,
	.tira-pista,
	.btn-mega::after {
		animation: none !important;
	}
	.tira {
		overflow-x: auto;
	}
	.glitch::before,
	.glitch::after {
		display: none;
	}
}

/* ajustes tras revisar capturas */
.heroe-personaje img { aspect-ratio: 400 / 779; }
.proy-rejilla > *, .destacado-in > *, .descarga-in > *, .presenta-caja > * { min-width: 0; }
.titulo-proy { font-size: clamp(2rem, 5.2vw, 4.8rem); }
@media (max-width: 640px) {
	.titulo-proy { font-size: 1.85rem; }
	.atajos .btn { padding: 13px 18px; font-size: .74rem; }
	.etiq { font-size: .64rem; }
	.marca-grande .glitch { font-size: clamp(3rem, 19vw, 5rem); }
}

/* apartados de colección */
.grupo-col + .grupo-col { margin-top: 80px; }
.grupo-cab { display: flex; align-items: center; gap: 18px; margin-bottom: 28px; }
.grupo-cab h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.grupo-cab::after { content: ""; flex: 1; height: 3px; background: linear-gradient(90deg, var(--acento), transparent); }
.grupo-n { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; background: var(--acento); color: var(--sobre-acento); font: 400 1.1rem/1 var(--f-titulo); clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
body[data-tema="pokemon"] .grupo-n { clip-path: none; border-radius: 99px; }
.grupo-vacio { padding: 40px 30px; background: var(--negro-2); border: 2px dashed var(--linea); border-radius: var(--radio); color: var(--gris); font: 400 1.05rem/1.4 var(--f-pixel); text-align: center; }
.ficha .estado-prox { position: absolute; inset: auto 0 0 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--acento) 0 10px, transparent 10px 20px); background-size: 28px 5px; animation: rayas 1s linear infinite; }
@keyframes rayas { to { background-position: 28px 0; } }
/* captura inclinada sin salirse en móvil */
@media (max-width: 640px) {
	.proy-portada img, .destacado-marco { transform: none; }
	.proy-portada img { box-shadow: 8px 8px 0 var(--acento); width: calc(100% - 8px); }
	.destacado-marco img { box-shadow: 8px 8px 0 var(--rosa); width: calc(100% - 8px); }
}
html, body { overflow-x: clip; max-width: 100%; }
.colec-heroe-fix .muestra-deco { height: 70%; }
@media (max-width: 640px) { .ficha-rapida { font-size: .8rem; } .pest-botones button { min-width: 0; padding: 16px 8px; font-size: .7rem; } }

/* =====================================================================
   PASADA DE COLOR (rediseño 4): más vivo, menos velo
   ===================================================================== */
:root {
	--magenta: #d400ff;
	--alerta: #ffe600;
	--sangre: #ff1f5a;
	--negro: #12061a;
	--negro-2: #1c0b28;
	--negro-3: #2a1238;
	--linea: #4a1f5e;
}
body {
	background:
		radial-gradient(
			1200px 700px at 10% -10%,
			rgba(255, 45, 138, 0.25),
			transparent 60%
		),
		radial-gradient(
			1000px 800px at 110% 30%,
			rgba(212, 0, 255, 0.18),
			transparent 60%
		),
		var(--negro);
	background-attachment: fixed;
}
body[data-tema="pokemon"] {
	--negro: #0a1640;
	--negro-2: #112159;
	--negro-3: #1a2f78;
	--linea: #2c47a0;
	background:
		radial-gradient(
			1100px 700px at 0% 0%,
			rgba(255, 203, 5, 0.22),
			transparent 60%
		),
		radial-gradient(
			1000px 800px at 100% 40%,
			rgba(255, 43, 43, 0.2),
			transparent 60%
		),
		var(--negro);
}
.heroe-fondo img {
	filter: saturate(1.35) contrast(1.05) brightness(0.9);
}
.heroe-fondo::after {
	background: linear-gradient(
		115deg,
		rgba(255, 45, 138, 0.55),
		rgba(212, 0, 255, 0.15) 50%,
		rgba(18, 6, 26, 0.55)
	);
	mix-blend-mode: normal;
}
.heroe-velo {
	background:
		radial-gradient(
			ellipse at 15% 110%,
			rgba(255, 45, 138, 0.55),
			transparent 55%
		),
		linear-gradient(180deg, transparent 55%, var(--negro) 99%);
}
.proy-fondo img {
	filter: saturate(1.3) brightness(0.85);
}
.pag-heroe::after,
.proy-heroe::after {
	background:
		linear-gradient(180deg, transparent 30%, var(--negro) 97%),
		linear-gradient(
			100deg,
			rgba(255, 45, 138, 0.5),
			rgba(212, 0, 255, 0.15) 50%,
			transparent 70%
		);
}
body[data-tema="pokemon"] .pag-heroe::after,
body[data-tema="pokemon"] .proy-heroe::after {
	background:
		linear-gradient(180deg, transparent 30%, var(--negro) 97%),
		linear-gradient(
			110deg,
			rgba(255, 203, 5, 0.35),
			transparent 45%,
			rgba(255, 43, 43, 0.3)
		);
}
.abstracto-fondo {
	background:
		repeating-linear-gradient(
			-55deg,
			transparent 0 40px,
			rgba(255, 255, 255, 0.06) 40px 44px
		),
		linear-gradient(120deg, #ff2d8a, #7a00b8 55%, #12061a);
}
body[data-tema="pokemon"] .abstracto-fondo {
	background:
		radial-gradient(
			circle at 1px 1px,
			rgba(255, 255, 255, 0.18) 1.5px,
			transparent 0
		)
		0 0 / 22px 22px,
		linear-gradient(130deg, #ffcb05 0, #ff7a00 25%, #2a6bff 60%, #0a1640);
}
.universo .u-fondo img {
	filter: saturate(1.25) brightness(0.85);
}
.universo:hover .u-fondo img {
	filter: saturate(1.5) brightness(1);
}
.universo.pk {
	background: radial-gradient(
		circle at 75% 25%,
		#3d8bff 0,
		#1d43c9 45%,
		#0a1640 100%
	);
}
.destacado-fondo img {
	filter: saturate(1.3) brightness(0.75);
}
.destacado::before {
	background: linear-gradient(
		90deg,
		rgba(18, 6, 26, 0.92) 15%,
		rgba(18, 6, 26, 0.35) 60%,
		rgba(255, 45, 138, 0.35)
	);
}
.tira img,
.reparto img {
	filter: none;
}
.cifra {
	background: linear-gradient(160deg, var(--negro-3), var(--negro-2));
}
.cifra b {
	background: linear-gradient(90deg, #fff, var(--acento-2));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.tarjeta,
.ficha,
.acordeon details,
.pestanas,
.buscador {
	background: linear-gradient(160deg, var(--negro-3), var(--negro-2));
}
.marquesina {
	background: var(--alerta);
}
.marquesina span::after {
	background: var(--sangre);
}

/* fondos de sección distintos */
.fondo-rosa {
	background: linear-gradient(135deg, #ff2d8a, #c4007a 50%, #7a00b8);
}
.fondo-puntos {
	background:
		radial-gradient(
			circle at 1px 1px,
			rgba(255, 45, 138, 0.35) 1.5px,
			transparent 0
		)
		0 0 / 18px 18px,
		var(--negro-2);
}
body[data-tema="pokemon"] .fondo-puntos {
	background:
		radial-gradient(
			circle at 1px 1px,
			rgba(255, 203, 5, 0.3) 1.5px,
			transparent 0
		)
		0 0 / 18px 18px,
		var(--negro-2);
}
.fondo-pk {
	background: linear-gradient(
		135deg,
		#ff2b2b 0,
		#ff2b2b 48%,
		#fff 48%,
		#fff 52%,
		#2a6bff 52%
	);
}
.banda-ancha {
	position: relative;
	padding: clamp(60px, 9vw, 110px) 0;
}
.banda-ancha > .seccion {
	padding-top: 0;
	padding-bottom: 0;
}
.fondo-rosa .cabecera p:not(.num),
.fondo-rosa .cabecera .num {
	color: #fff;
}

/* banda de GIFs en bucle */
.banda-gifs {
	position: relative;
	overflow: hidden;
	padding: 22px 0;
	border-block: 4px solid #fff;
	background: linear-gradient(90deg, #ff2d8a, #d400ff 50%, #ff2d8a);
	transform: rotate(1.5deg) scale(1.03);
	margin: 40px 0;
	box-shadow: 0 0 60px rgba(255, 45, 138, 0.5);
}
.banda-gifs.pk {
	background: linear-gradient(
		90deg,
		#ffcb05,
		#ff7a00 35%,
		#ff2b2b 65%,
		#ffcb05
	);
	transform: rotate(-1.5deg) scale(1.03);
}
.banda-gifs > div {
	display: flex;
	gap: 34px;
	width: max-content;
	align-items: flex-end;
	animation: marq 40s linear infinite;
}
.banda-gifs.inversa > div {
	animation-direction: reverse;
}
.banda-gifs img {
	height: 92px;
	width: auto;
	image-rendering: pixelated;
	filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.45));
}
.banda-gifs.pk img {
	height: 84px;
	image-rendering: auto;
}
.banda-gifs span {
	font: 400 1.5rem / 1 var(--f-titulo);
	color: #fff;
	text-shadow: 3px 3px 0 #12061a;
	white-space: nowrap;
	align-self: center;
}

/* collage de cabecera de colección */
.collage {
	position: absolute;
	inset: -40px 0;
	z-index: -3;
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 8px;
	transform: skewY(-4deg);
}
.collage img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(1.3);
}
.collage img:nth-child(1) {
	grid-row: span 2;
}
.sello-trial {
	position: absolute;
	right: clamp(16px, 6vw, 90px);
	top: 130px;
	z-index: 1;
	font: 400 clamp(2.2rem, 6vw, 5rem) / 0.9 var(--f-titulo);
	color: #fff;
	background: var(--sangre);
	padding: 14px 26px 18px;
	transform: rotate(-6deg);
	box-shadow:
		8px 8px 0 var(--alerta),
		0 0 50px rgba(255, 31, 90, 0.7);
	animation: latido 1.6s ease-in-out infinite;
	text-align: center;
}
.sello-trial small {
	display: block;
	font: 900 0.9rem / 1.2 var(--f-rotulo);
	letter-spacing: 0.3em;
	color: var(--alerta);
	margin-bottom: 6px;
}
@keyframes latido {
	50% {
		transform: rotate(-6deg) scale(1.05);
	}
}
.pegatina {
	position: absolute;
	z-index: 1;
	padding: 12px 18px;
	font: 400 1.1rem / 1 var(--f-titulo);
	background: var(--alerta);
	color: #12061a;
	border: 4px solid #12061a;
	box-shadow: 5px 5px 0 var(--acento);
	transform: rotate(8deg);
}
.balas {
	position: absolute;
	right: clamp(16px, 5vw, 70px);
	bottom: 40px;
	z-index: 0;
	display: flex;
	gap: 14px;
	pointer-events: none;
}
.balas img {
	width: clamp(130px, 15vw, 220px);
	border: 3px solid #fff;
	transform: rotate(-4deg);
	box-shadow: 6px 6px 0 var(--alerta);
}
.balas img:nth-child(2) {
	transform: rotate(5deg) translateY(-24px);
}
.balas img:nth-child(3) {
	width: clamp(70px, 7vw, 110px);
	border: 0;
	box-shadow: none;
	image-rendering: pixelated;
	transform: none;
	align-self: flex-end;
}
.brillos {
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background-image:
		radial-gradient(2px 2px at 20% 30%, #fff, transparent),
		radial-gradient(2px 2px at 70% 20%, #fff, transparent),
		radial-gradient(3px 3px at 85% 65%, #ffe600, transparent),
		radial-gradient(2px 2px at 40% 80%, #fff, transparent),
		radial-gradient(3px 3px at 10% 70%, #ff6fb0, transparent),
		radial-gradient(2px 2px at 55% 45%, #fff, transparent),
		radial-gradient(3px 3px at 30% 15%, #ffe600, transparent);
	animation: brillar 2.4s ease-in-out infinite alternate;
}
@keyframes brillar {
	from {
		opacity: 0.3;
	}
	to {
		opacity: 1;
	}
}

/* desfile Pokémon */
.desfile {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 120px;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	border-top: 4px solid #fff;
	background: linear-gradient(180deg, #5fd35f, #2e8a2e);
}
.desfile > div {
	position: absolute;
	bottom: 14px;
	display: flex;
	gap: 46px;
	align-items: flex-end;
	width: max-content;
	animation: caminar 50s linear infinite;
}
.desfile img {
	height: 82px;
	width: auto;
	transform: scaleX(-1);
}
@keyframes caminar {
	from {
		transform: translateX(-50%);
	}
	to {
		transform: translateX(0);
	}
}
.pk-arte {
	position: absolute;
	right: clamp(0px, 4vw, 70px);
	bottom: 110px;
	height: 74%;
	z-index: -1;
	pointer-events: none;
	display: flex;
	align-items: flex-end;
}
.pk-arte img {
	height: 100%;
	width: auto;
	filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45));
}
.pk-arte img + img {
	height: 62%;
	margin-left: -60px;
}
.pag-heroe.con-desfile,
.proy-heroe.con-desfile {
	padding-bottom: 170px;
}

/* galería de muestras */
.galeria-muestras {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
}
.galeria-muestras button {
	padding: 0;
	border: 0;
	cursor: zoom-in;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--negro-3);
	border-radius: var(--radio);
}
.galeria-muestras button:first-child {
	grid-column: span 2;
	grid-row: span 2;
}
.galeria-muestras img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s var(--ease);
}
.galeria-muestras button:hover img {
	transform: scale(1.08);
}

@media (max-width: 640px) {
	.collage {
		grid-template-columns: 1fr 1fr;
	}
	.collage img:nth-child(n + 4) {
		display: none;
	}
	.sello-trial {
		top: 84px;
		right: 12px;
		font-size: 1.5rem;
		padding: 8px 14px 10px;
	}
	.balas {
		display: none;
	}
	.banda-gifs img {
		height: 62px;
	}
	.banda-gifs.pk img {
		height: 58px;
	}
	.galeria-muestras {
		grid-template-columns: 1fr 1fr;
	}
	.pk-arte {
		height: 34%;
		bottom: 100px;
		opacity: 0.85;
	}
	.desfile {
		height: 90px;
	}
	.desfile img {
		height: 58px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.banda-gifs > div,
	.desfile > div,
	.sello-trial,
	.brillos {
		animation: none !important;
	}
	.banda-gifs,
	.desfile {
		overflow-x: auto;
	}
}

/* ajustes tras capturas */
.pag-heroe { min-height: min(62vh, 680px); }
.pag-heroe.bajo { min-height: min(46vh, 520px); }
.proy-heroe { min-height: min(94vh, 900px); }
.heroe { min-height: min(100svh, 980px); }
@media (max-width: 640px) { .pk-arte { opacity: .3; } .pag-heroe .intro { text-shadow: 0 2px 10px rgba(0,0,0,.9); } }
.captura .revela, .captura .corta { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }

/* =====================================================================
   MOVIMIENTO (rediseño 5)
   ===================================================================== */
/* menú siempre por encima de la decoración */
.barra { z-index: 70; background: linear-gradient(180deg, rgba(18, 6, 26, .85), rgba(18, 6, 26, 0)); }
.heroe-personaje { top: 90px; height: auto; bottom: 0; }
.heroe-personaje img { height: 100%; }
.heroe-personaje > div { height: 100%; animation: flotar-suave 6s ease-in-out infinite; }
@keyframes flotar-suave { 50% { transform: translateY(-14px) rotate(-.6deg); } }

/* fondo con escenas que cambian (crossfade + Ken Burns) */
.escenas { position: absolute; inset: 0; }
.escenas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: escena 24s linear infinite; }
.escenas img:nth-child(2) { animation-delay: 6s; }
.escenas img:nth-child(3) { animation-delay: 12s; }
.escenas img:nth-child(4) { animation-delay: 18s; }
.escenas img:first-child { opacity: 1; }
@keyframes escena { 0% { opacity: 0; transform: scale(1.02) translate(0, 0); } 5% { opacity: 1; } 25% { opacity: 1; } 32% { opacity: 0; transform: scale(1.14) translate(-2%, -1%); } 100% { opacity: 0; } }

/* píldoras flotando (formas propias) */
.pildoras { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.pildoras i { position: absolute; bottom: -60px; width: 18px; height: 44px; border-radius: 99px; background: linear-gradient(180deg, #fff 50%, var(--rosa) 50%); box-shadow: 0 0 18px rgba(255, 45, 138, .7); animation: subir 12s linear infinite; opacity: .85; }
.pildoras i:nth-child(1) { left: 6%; animation-duration: 11s; }
.pildoras i:nth-child(2) { left: 18%; animation-delay: -4s; transform: scale(.7); }
.pildoras i:nth-child(3) { left: 33%; animation-delay: -8s; animation-duration: 14s; }
.pildoras i:nth-child(4) { left: 47%; animation-delay: -2s; background: linear-gradient(180deg, #fff 50%, var(--alerta) 50%); }
.pildoras i:nth-child(5) { left: 61%; animation-delay: -6s; animation-duration: 10s; }
.pildoras i:nth-child(6) { left: 74%; animation-delay: -10s; background: linear-gradient(180deg, #fff 50%, var(--magenta) 50%); }
.pildoras i:nth-child(7) { left: 86%; animation-delay: -3s; animation-duration: 13s; }
.pildoras i:nth-child(8) { left: 95%; animation-delay: -7s; }
@keyframes subir { from { transform: translateY(0) rotate(0); } to { transform: translateY(-120vh) rotate(540deg); } }

/* brillo que recorre los botones */
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%); transform: translateX(-120%); animation: brillo 4.5s var(--ease) infinite 2s; pointer-events: none; }

/* cursor con brillo (solo ratón) */
.brillo-cursor { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px; border-radius: 50%; pointer-events: none; z-index: 150; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 45, 138, .6) 40%, transparent 70%); mix-blend-mode: screen; transition: transform .15s; }
.chispa { position: fixed; width: 6px; height: 6px; margin: -3px; border-radius: 50%; pointer-events: none; z-index: 149; background: var(--acento); box-shadow: 0 0 8px var(--acento); animation: chispa .7s ease-out forwards; }
@keyframes chispa { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

/* inclinación 3D */
.inclina { transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .45s; will-change: transform; }

/* Monokuma que asoma */
.asoma { position: fixed; right: -10px; bottom: -10px; z-index: 65; width: 160px; transform: translateY(110%) rotate(-8deg); transition: transform .6s var(--ease); pointer-events: none; }
.asoma.ver { transform: translateY(18%) rotate(-8deg); }
.asoma img { width: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 12px rgba(255, 45, 138, .8)); }

/* Pokémon que saltan al pasar el ratón */
.pk-sprites img, .banda-gifs.pk img, .abstracto .muestra-sprites img, .desfile img { transition: transform .2s; }
.pk-sprites img:hover, .banda-gifs.pk img:hover, .abstracto .muestra-sprites img:hover { animation: rebote .6s ease; }
.banda-gifs { pointer-events: auto; }
.banda-gifs img:hover { animation: rebote .6s ease; }
@keyframes rebote { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-28px) scale(1.1, .9); } 50% { transform: translateY(0) scale(.9, 1.1); } 70% { transform: translateY(-10px); } }

/* entradas variadas */
.js .revela.escala { transform: scale(.85); }
.js .revela.gira { transform: perspective(800px) rotateX(18deg) translateY(40px); transform-origin: 50% 100%; }
.js .revela.gira-z { transform: rotate(-4deg) translateY(50px); }
.js .revela.visto.escala, .js .revela.visto.gira, .js .revela.visto.gira-z { transform: none; }

/* glitch del héroe más visible de vez en cuando */
.marca-grande .glitch.activo { animation: temblor .3s steps(3) 2; }
@keyframes temblor { 33% { transform: translate(-3px, 2px) skewX(-4deg); } 66% { transform: translate(3px, -1px) skewX(3deg); } }

/* comparador de la portada */
.comparador-portada { max-width: 980px; margin: 0 auto; }
.comparador-portada .comp-caja { aspect-ratio: 16 / 9; border: 5px solid #fff; box-shadow: 14px 14px 0 var(--rosa); }

@media (max-width: 640px) {
	.heroe-personaje { top: auto; height: 74%; }
	.asoma { width: 110px; }
	.pildoras i { width: 12px; height: 30px; }
}
@media (hover: none) { .brillo-cursor { display: none; } }
@media (prefers-reduced-motion: reduce) {
	.escenas img { animation: none !important; opacity: 0; } .escenas img:first-child { opacity: 1; }
	.pildoras, .brillo-cursor, .chispa { display: none !important; }
	.heroe-personaje > div, .btn::after { animation: none !important; }
	.asoma { transition: none; }
	.inclina { transform: none !important; }
}
.captura .entra, .captura .letras > span { opacity: 1 !important; transform: none !important; animation: none !important; }
.cifra b { white-space: nowrap; font-size: clamp(1.6rem, 3.4vw, 3rem); }

/* =====================================================================
   FONDOS PROPIOS SIN TEXTO + DUALIDAD (rediseño 6)
   ===================================================================== */
.fondo-propio { position: absolute; inset: 0; overflow: hidden; background: #12061a; }
.fondo-propio > i { position: absolute; inset: -20%; opacity: 0; animation: escena 24s linear infinite; }
.fondo-propio > i:nth-child(1) { opacity: 1; background: radial-gradient(circle at 75% 35%, #ff2d8a 0, transparent 45%), radial-gradient(circle at 20% 80%, #7a00b8 0, transparent 50%), conic-gradient(from 200deg at 60% 40%, #12061a, #3a0050, #ff2d8a, #12061a); }
.fondo-propio > i:nth-child(2) { animation-delay: 6s; background: repeating-conic-gradient(from 0deg at 70% 50%, #ff2d8a 0 8deg, #c4007a 8deg 16deg), #ff2d8a; }
.fondo-propio > i:nth-child(3) { animation-delay: 12s; background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .25) 2px, transparent 0) 0 0 / 26px 26px, linear-gradient(135deg, #d400ff, #ff2d8a 55%, #ffe600); }
.fondo-propio > i:nth-child(4) { animation-delay: 18s; background: repeating-linear-gradient(-30deg, #12061a 0 60px, #ff1f5a 60px 64px, #12061a 64px 120px, #ffe600 120px 122px), #12061a; }
.fondo-propio::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .12) 0 2px, transparent 2px 5px); }
.fondo-propio.fijo > i { animation: none; }
.fondo-propio.fijo > i:not(:first-child) { display: none; }

/* dualidad Hinata / Kamukura */
.dualidad { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dualidad::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 170, 60, .55) 0, rgba(255, 120, 80, .25) 45%, transparent 50%, rgba(255, 0, 40, .35) 52%, rgba(40, 0, 10, .85) 100%); }
.dualidad::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: 50%; width: 6px; background: #fff; box-shadow: 0 0 30px #ff1f5a, 0 0 60px #ff1f5a; transform: skewX(-12deg); animation: corte-dual 4s ease-in-out infinite; }
@keyframes corte-dual { 0%, 100% { opacity: .9; } 48% { opacity: .9; } 50% { opacity: .2; transform: skewX(-12deg) translateX(8px); } 52% { opacity: 1; } }
.dualidad .lado { position: absolute; bottom: 0; height: 96%; }
.dualidad .lado img { height: 100%; width: auto; }
.dualidad .calido { left: 46%; transform: translateX(-100%); filter: drop-shadow(0 0 22px rgba(255, 170, 60, .7)) saturate(1.1); animation: respira 5s ease-in-out infinite; }
.dualidad .oscuro { left: 54%; filter: drop-shadow(0 0 26px rgba(255, 0, 40, .9)) contrast(1.1); animation: respira 5s ease-in-out infinite -2.5s, glitch-dual 7s steps(1) infinite; }
.dualidad .oscuro img { animation: pelo 6s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes respira { 50% { transform: translateX(var(--tx, 0)) translateY(-10px); } }
.dualidad .calido { --tx: -100%; }
@keyframes pelo { 50% { transform: skewX(-1.2deg) scaleY(1.008); } }
@keyframes glitch-dual { 0%, 92%, 100% { clip-path: none; translate: 0; } 93% { clip-path: inset(20% 0 55% 0); translate: -10px 0; } 95% { clip-path: inset(60% 0 10% 0); translate: 8px 0; } 97% { clip-path: inset(0 0 80% 0); translate: -4px 0; } }
.dualidad .nombre { position: absolute; top: 120px; font: 400 clamp(1.4rem, 3vw, 2.4rem)/1 var(--f-titulo); padding: 8px 18px; transform: rotate(-4deg); }
.dualidad .nombre.n1 { left: 4%; background: #ffb347; color: #12061a; box-shadow: 5px 5px 0 #fff; }
.dualidad .nombre.n2 { right: 4%; background: #12061a; color: #ff1f5a; border: 3px solid #ff1f5a; box-shadow: 5px 5px 0 #ff1f5a; transform: rotate(4deg); }
.pag-heroe.con-dualidad { min-height: min(92vh, 900px); }
.pag-heroe.con-dualidad .proy-texto { max-width: 560px; margin: 0; z-index: 1; background: linear-gradient(90deg, rgba(18, 6, 26, .85), rgba(18, 6, 26, .5) 80%, transparent); padding: 24px 28px 24px 0; }
.universo .u-fondo.propio { background: radial-gradient(circle at 70% 30%, #ff2d8a, transparent 50%), linear-gradient(135deg, #3a0050, #12061a); }
.universo .dualidad { z-index: -2; }
.universo .dualidad .lado { height: 88%; bottom: 60px; }
.universo .dualidad .nombre { display: none; }

@media (max-width: 640px) {
	.dualidad .lado { height: 62%; bottom: 0; opacity: .75; }
	.dualidad .nombre { top: 76px; font-size: 1rem; }
	.pag-heroe.con-dualidad .proy-texto { background: rgba(18, 6, 26, .78); padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.fondo-propio > i, .dualidad *, .dualidad::after { animation: none !important; }
	.fondo-propio > i:not(:first-child) { opacity: 0; }
}
.pag-heroe.con-dualidad .sello-trial { top: auto; bottom: 60px; right: clamp(16px, 4vw, 60px); font-size: clamp(1.6rem, 3.6vw, 3rem); }
@media (max-width: 640px) { .pag-heroe.con-dualidad .sello-trial { bottom: auto; top: 84px; } }

/* reparto DR2: Hinata, Chiaki y Kamukura */
.dualidad .calido { left: 4%; transform: none; --tx: 0; height: 94%; }
.dualidad .centro { left: 50%; transform: translateX(-50%); --tx: -50%; height: 84%; z-index: 2; filter: drop-shadow(0 0 22px rgba(255, 182, 216, .9)); animation: respira 4.5s ease-in-out infinite -1s; }
.dualidad .oscuro { left: auto; right: -4%; height: 92%; }
.dualidad .oscuro img { filter: drop-shadow(0 0 30px rgba(255, 0, 40, .95)) drop-shadow(0 0 70px rgba(120, 0, 20, .9)); }
.dualidad .halo { position: absolute; left: 50%; top: 4%; width: 70%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 20, 60, .65), rgba(120, 0, 20, .35) 45%, transparent 70%); animation: halo 3s ease-in-out infinite; z-index: -1; }
@keyframes halo { 50% { transform: translateX(-50%) scale(1.12); opacity: .7; } }
.dualidad .oscuro::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(4px 4px at 20% 30%, #1a0006, transparent), radial-gradient(5px 5px at 70% 60%, #1a0006, transparent), radial-gradient(3px 3px at 40% 80%, #ff1f5a, transparent), radial-gradient(4px 4px at 85% 25%, #1a0006, transparent), radial-gradient(3px 3px at 10% 70%, #ff1f5a, transparent); animation: subir-pocas 5s linear infinite; z-index: 3; }
@keyframes subir-pocas { from { transform: translateY(20px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-80px); opacity: 0; } }
.dualidad .consola { position: absolute; right: -26px; bottom: 40%; display: grid; grid-template-columns: repeat(3, 10px); gap: 4px; padding: 10px; background: #ffb6d8; border: 3px solid #fff; border-radius: 10px; box-shadow: 4px 4px 0 #12061a; }
.dualidad .consola i { width: 10px; height: 10px; background: #12061a; animation: pixel 1.2s steps(1) infinite; }
.dualidad .consola i:nth-child(2) { animation-delay: .4s; } .dualidad .consola i:nth-child(3) { animation-delay: .8s; }
@keyframes pixel { 50% { background: #ff2d8a; } }
.dualidad .nombre.n3 { left: 50%; top: auto; bottom: 18px; transform: translateX(-50%) rotate(-2deg); background: #ffb6d8; color: #12061a; box-shadow: 5px 5px 0 #fff; z-index: 3; }
.dualidad::before { background: linear-gradient(105deg, rgba(255, 170, 60, .55) 0, rgba(255, 182, 216, .35) 40%, rgba(255, 182, 216, .3) 60%, rgba(255, 0, 40, .45) 70%, rgba(40, 0, 10, .85) 100%); }
.dualidad::after { left: 68%; }
.pag-heroe.con-dualidad .proy-texto { position: relative; z-index: 4; }
.universo .dualidad .centro { height: 70%; }
@media (max-width: 640px) {
	.dualidad .calido { left: -8%; height: 58%; } .dualidad .oscuro { right: -30%; height: 54%; } .dualidad .centro { height: 52%; }
	.dualidad .consola { display: none; } .dualidad .nombre.n3 { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .dualidad .halo, .dualidad .oscuro::before, .dualidad .consola i { animation: none !important; } }
.dualidad .nombre { z-index: 3; }
.dualidad .oscuro { height: 78%; right: -10%; }
.dualidad .calido { left: 2%; height: 92%; }
.pag-heroe.con-dualidad .proy-texto { margin-left: 22%; max-width: 520px; }
@media (max-width: 1000px) { .pag-heroe.con-dualidad .proy-texto { margin-left: 0; } }
@media (max-width: 640px) {
  .pag-heroe.con-dualidad { padding-top: 470px; }
  .dualidad .lado { top: 110px; bottom: auto; height: 360px; opacity: 1; }
  .dualidad .calido { left: -4%; height: 340px; }
  .dualidad .centro { height: 330px; top: 130px; }
  .dualidad .oscuro { right: -38%; height: 300px; top: 150px; }
  .dualidad .nombre.n3 { top: 440px; bottom: auto; }
  .pag-heroe.con-dualidad .sello-trial { display: none; }
}

/* =====================================================================
   ESCENA DE CUT-INS (colección Danganronpa)
   ===================================================================== */
.pag-heroe.con-escena { min-height: min(100vh, 920px); align-items: flex-end; }
.pag-heroe.con-escena .proy-texto { position: relative; z-index: 5; max-width: 470px; margin: 0; padding: 24px 26px; background: rgba(18, 6, 26, .88); border-left: 5px solid var(--rosa); box-shadow: 10px 10px 0 rgba(255, 45, 138, .35); }
.pag-heroe.con-escena .proy-texto h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
.escena { position: absolute; inset: 0; z-index: 0; overflow: hidden; --mx: 50%; --my: 50%; --px: 0; --py: 0; --abre: 0; }
.velocidad { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg at 62% 45%, rgba(255, 255, 255, .16) 0 1.2deg, transparent 1.2deg 7deg); animation: girar 30s linear infinite; mix-blend-mode: overlay; }
@keyframes girar { to { transform: rotate(360deg); } }
.paneles { position: absolute; inset: 70px 0 0 34%; }
.panel { position: absolute; overflow: visible; transform: translate(calc(var(--px) * var(--prof) * 10px + var(--abre) * var(--sx, 0) * 1px), calc(var(--py) * var(--prof) * 8px)); transition: transform .25s ease-out; animation: entra-panel .7s var(--ease-golpe) both; animation-delay: calc(2.1s + var(--i) * .18s); }
.panel-in { position: absolute; inset: 0; overflow: hidden; border: 5px solid #fff; background: linear-gradient(135deg, #ff2d8a, #7a00b8); box-shadow: 10px 10px 0 rgba(0, 0, 0, .45); animation: respirar 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.2s); }
.panel-in::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-60deg, transparent 0 22px, rgba(255, 255, 255, .12) 22px 24px); animation: lineas 1.2s linear infinite; pointer-events: none; }
@keyframes lineas { to { background-position: 60px 0; } }
@keyframes respirar { 50% { transform: scale(1.015) rotate(.3deg); } }
@keyframes entra-panel { from { opacity: 0; transform: translateX(120%) skewX(-20deg); } 70% { opacity: 1; } }
.panel img { position: absolute; max-width: none; }
.p1 { left: 0; top: 4%; width: 30%; height: 92%; --sx: -900; }
.p1 .panel-in { clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); background: linear-gradient(160deg, #ffb347, #ff6a3d 60%, #c4007a); }
.p1 img { height: 150%; left: 50%; top: 2%; transform: translateX(-50%) rotate(-8deg); }
.p2 { left: 26%; top: 0; width: 46%; height: 30%; --sx: 900; }
.p2 .panel-in { clip-path: polygon(6% 0, 100% 0, 96% 100%, 0 100%); background: linear-gradient(90deg, #12061a, #5a0014 60%, #ff1f5a); }
.p2 img.ojos { width: 230%; left: -64%; top: -62%; transform: rotate(-6deg); filter: drop-shadow(0 0 18px rgba(255, 0, 40, .9)); animation: pelo-ola 6s ease-in-out infinite; }
@keyframes pelo-ola { 50% { transform: rotate(-6deg) skewX(-2deg) translateX(-6px); } }
.p3 { left: 26%; top: 33%; width: 26%; height: 67%; z-index: 2; --sx: -600; }
.p3 .panel-in { clip-path: polygon(10% 0, 100% 3%, 92% 100%, 0 97%); background: radial-gradient(circle at 50% 30%, #ffe1f0, #ffb6d8 50%, #ff7ab8); transition: transform .4s var(--ease), filter .4s; }
.p3 img { height: 125%; left: 50%; top: 4%; transform: translateX(-50%) rotate(4deg); }
.p3:hover .panel-in, .p3.cerca .panel-in { transform: scale(1.06) rotate(-1deg); filter: drop-shadow(0 0 24px #ffb6d8) brightness(1.08); }
.consola-mini { position: absolute; right: 10px; bottom: 12px; display: grid; grid-template-columns: repeat(3, 9px); gap: 3px; padding: 7px; background: #12061a; border: 2px solid #fff; border-radius: 8px; z-index: 2; }
.consola-mini i { width: 9px; height: 9px; background: #ffb6d8; animation: pixel 1s steps(1) infinite; }
.consola-mini i:nth-child(2) { animation-delay: .33s; } .consola-mini i:nth-child(3) { animation-delay: .66s; }
.p4 { left: 50%; top: 33%; width: 50%; height: 67%; --sx: 900; }
.p4 .panel-in { clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%); background: linear-gradient(120deg, #ff9a3d, #ff2d8a 45%, #3a0010 55%, #12061a); }
.p4 .dual img { height: 112%; bottom: -6%; left: 50%; transform: translateX(-50%); }
.p4 .dual img.abajo { height: 118%; filter: drop-shadow(0 0 24px rgba(255, 0, 40, .9)); animation: pelo-ola 6s ease-in-out infinite; }
.p4 .dual img.arriba { -webkit-mask-image: radial-gradient(circle var(--radio-grieta, 110px) at var(--mx) var(--my), transparent 0 98%, #000 100%); mask-image: radial-gradient(circle var(--radio-grieta, 110px) at var(--mx) var(--my), transparent 0 98%, #000 100%); }
.escena.kamukura .p4 .dual img.arriba { --radio-grieta: 900px; transition: --radio-grieta .6s; }
.grieta { position: absolute; left: var(--mx); top: var(--my); width: calc(var(--radio-grieta, 110px) * 2); height: calc(var(--radio-grieta, 110px) * 2); margin: calc(var(--radio-grieta, 110px) * -1); border-radius: 50%; border: 3px solid #ff1f5a; box-shadow: 0 0 24px #ff1f5a, inset 0 0 24px #ff1f5a; pointer-events: none; }
.escena.kamukura .grieta { display: none; }
.corte-rotulo { position: absolute; z-index: 3; padding: 6px 16px 8px; font: 400 clamp(1rem, 2.2vw, 1.9rem)/1 var(--f-titulo); background: #fff; color: #12061a; box-shadow: 6px 6px 0 #12061a; transform: rotate(-6deg); animation: golpe .5s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(2.5s + var(--i) * .18s); white-space: nowrap; }
@keyframes golpe { from { opacity: 0; transform: rotate(-6deg) scale(3); } }
.r1 { left: 4%; bottom: 6%; background: #ffb347; }
.r2 { right: 6%; bottom: -14px; background: #12061a; color: #ff1f5a; box-shadow: 6px 6px 0 #ff1f5a; }
.r3 { left: 10%; top: -16px; background: #ffb6d8; }
.r4 { right: 4%; top: 10%; background: #ff1f5a; color: #fff; }
.destellos { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(3px 3px at 40% 20%, #fff, transparent), radial-gradient(2px 2px at 80% 40%, #fff, transparent), radial-gradient(3px 3px at 60% 85%, #ffe600, transparent), radial-gradient(2px 2px at 90% 15%, #fff, transparent), radial-gradient(3px 3px at 45% 60%, #ff6fb0, transparent); animation: brillar 1.8s ease-in-out infinite alternate; }
.escena .panel-in { animation-name: respirar; }
.pag-heroe.con-escena .proy-texto { animation: entra .8s var(--ease) both 2.6s; }
.js .pag-heroe.con-escena .proy-texto .revela { opacity: 1; transform: none; }

/* entrada: consola PRESS START */
.consola-intro { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; background: #12061a; animation: consola-fuera .5s steps(4) both 1.7s; pointer-events: none; }
.consola-intro .pantalla { display: grid; gap: 14px; place-items: center; padding: 50px 70px; background: #ffb6d8; border: 8px solid #fff; border-radius: 28px; box-shadow: 0 0 0 10px #12061a, 0 0 80px rgba(255, 182, 216, .7); animation: temblor .2s steps(2) 6 1.4s; }
.consola-intro .ps { font: 400 clamp(1.6rem, 4vw, 3rem)/1 var(--f-pixel); color: #12061a; letter-spacing: .12em; animation: parpadeo .5s steps(1) infinite; }
.consola-intro .sub { font: 400 .9rem/1 var(--f-pixel); color: #7a00b8; }
@keyframes parpadeo { 50% { opacity: 0; } }
@keyframes consola-fuera { 0% { clip-path: inset(0); } 25% { clip-path: inset(10% 0 40% 0); transform: translateX(-20px); } 50% { clip-path: inset(50% 0 10% 0); transform: translateX(20px); } 100% { clip-path: inset(50% 0 50% 0); opacity: 0; visibility: hidden; } }
.escena.vista .consola-intro { display: none; }
.escena.vista .panel, .escena.vista .corte-rotulo { animation-delay: 0s; animation-duration: .01s; }

@media (max-width: 900px) {
	.pag-heroe.con-escena { padding-top: 560px; min-height: 0; }
	.paneles { inset: 66px 0 auto 0; height: 470px; }
	.pag-heroe.con-escena .proy-texto { max-width: none; }
}
@media (max-width: 640px) {
	.paneles { height: 440px; }
	.corte-rotulo { font-size: .95rem; padding: 4px 10px 6px; }
	.consola-intro .pantalla { padding: 30px 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.consola-intro { display: none; }
	.panel, .panel-in, .corte-rotulo, .velocidad, .destellos, .p2 img.ojos, .p4 .dual img.abajo, .panel-in::after, .consola-mini i, .pag-heroe.con-escena .proy-texto { animation: none !important; }
	.p4 .dual img.arriba { -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 50%); mask-image: linear-gradient(90deg, #000 50%, transparent 50%); }
	.grieta { display: none; }
}
/* entrada por clase (más fiable que fill-mode) */
.escena .panel { animation: none; transition: transform .7s var(--ease-golpe), opacity .5s; transition-delay: calc(var(--i) * .18s); }
.escena:not(.lista) .panel { opacity: 0; transform: translateX(120%) skewX(-20deg); }
.escena .corte-rotulo { animation: none; transition: transform .5s cubic-bezier(.2, 1.6, .4, 1), opacity .3s; transition-delay: calc(.4s + var(--i) * .18s); }
.escena:not(.lista) .corte-rotulo { opacity: 0; transform: rotate(-6deg) scale(3); }
.escena.lista .panel { transition-property: transform, opacity; }
.p4 .dual img.abajo { z-index: 1; animation-name: pelo-ola-c; }
@keyframes pelo-ola-c { 0%, 100% { transform: translateX(-50%); } 50% { transform: translateX(-51%) skewX(-2deg); } }
.p4 .dual img.arriba { z-index: 2; }
.p4 .grieta { z-index: 3; }

/* vídeo de cabecera opcional */
.video-cabecera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: 0; transition: opacity .8s; }
.video-cabecera.listo { opacity: 1; }
.tinte-neon { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(115deg, rgba(255, 45, 138, .45), rgba(212, 0, 255, .25) 50%, rgba(255, 31, 90, .35)); mix-blend-mode: screen; }
@media (prefers-reduced-motion: reduce) { .video-cabecera { display: none; } }

/* GIFs de Giphy (muestra) */
.giphy { border: 0; pointer-events: none; display: block; background: transparent; }
.giphy-fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.giphy-fondo .giphy { position: absolute; left: 50%; top: 50%; width: max(100%, 177.78vh); height: max(100%, 56.25vw); transform: translate(-50%, -50%) scale(1.15); }
.tinte-neon { z-index: 0; mix-blend-mode: normal; background: linear-gradient(115deg, rgba(255, 45, 138, .5), rgba(212, 0, 255, .28) 50%, rgba(255, 31, 90, .42)); }
.escena { z-index: 1; }
.escena .velocidad { opacity: .45; }
.panel .giphy { position: absolute; left: 50%; top: 50%; width: 180%; height: 180%; transform: translate(-50%, -50%); }
.p2 .giphy { width: 130%; height: 260%; }
.p4 .dual .giphy { width: 150%; height: 150%; }
.p4 .dual .giphy.arriba { z-index: 2; -webkit-mask-image: radial-gradient(circle var(--radio-grieta, 110px) at var(--mx) var(--my), transparent 0 98%, #000 100%); mask-image: radial-gradient(circle var(--radio-grieta, 110px) at var(--mx) var(--my), transparent 0 98%, #000 100%); }
.p4 .dual .giphy.abajo { z-index: 1; }
.credito-giphy { position: absolute; right: 12px; bottom: 10px; z-index: 6; font: 400 .7rem/1 var(--f-pixel); color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 8px; text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
	.giphy-fondo, .panel .giphy { display: none; }
	.panel-in { background: linear-gradient(135deg, #ff2d8a, #7a00b8); }
}

/* fondo mientras cargan los GIFs y sitio para el texto */
.giphy-fondo { background: radial-gradient(circle at 70% 40%, #ff2d8a, transparent 55%), radial-gradient(circle at 20% 80%, #7a00b8, transparent 55%), linear-gradient(135deg, #3a0050, #12061a); }
.panel-in { background-image: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(135deg, #ff2d8a, #7a00b8); }
.paneles { left: 40%; }
.pag-heroe.con-escena .proy-texto { max-width: 440px; }
@media (max-width: 900px) { .paneles { left: 0; } }
.r3 { top: auto; bottom: 46px; left: -6%; }
.p1 .giphy { top: 22%; height: 150%; width: 260%; }
.p2 .giphy { width: 120%; height: 230%; top: 62%; left: 46%; }

/* =====================================================================
   CABECERA NOVELA VISUAL «Te están hablando a ti» (colección Danganronpa)
   ===================================================================== */
.pag-heroe.vn { min-height: min(100vh, 940px); padding: 0; display: block; overflow: hidden; isolation: isolate; cursor: pointer; --esp: 1; }
.pag-heroe.vn::after { display: none; }
.vn-escenario { position: absolute; inset: 0; z-index: -2; transition: filter .6s; }
.vn-pared { position: absolute; inset: -6% -2% 34%; background: linear-gradient(180deg, #ffd3e6 0, #ffb0cf 55%, #f58bb8 100%); }
.vn-pared::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 160px, rgba(255, 255, 255, .25) 160px 166px); }
.ventana { position: absolute; top: 14%; width: 15%; height: 46%; background: linear-gradient(160deg, #bfe6ff, #7cc4ff 60%, #ffd9ec); border: 10px solid #fff; box-shadow: inset 0 0 0 4px #e47aa8; }
.ventana::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%), linear-gradient(0deg, transparent 48%, #fff 48% 52%, transparent 52%); }
.v1 { left: 4%; } .v2 { left: 22%; } .v3 { right: 4%; }
.pizarra { position: absolute; left: 40%; width: 34%; top: 18%; height: 38%; background: #2f6b4f; border: 12px solid #a0643c; box-shadow: 0 10px 0 rgba(0, 0, 0, .15); }
.pizarra::after { content: "VUELVE A JUGAR · EN ESPAÑOL"; position: absolute; left: 8%; top: 32%; font: 400 clamp(.8rem, 1.6vw, 1.4rem)/1.2 var(--f-pixel); color: rgba(255, 255, 255, .75); transform: rotate(-3deg); }
.vn-suelo { position: absolute; left: -20%; right: -20%; bottom: 0; height: 40%; background: repeating-linear-gradient(90deg, #d97ba6 0 2px, transparent 2px 120px), repeating-linear-gradient(0deg, #d97ba6 0 2px, transparent 2px 60px), linear-gradient(180deg, #f6a9c8, #e98bb5); transform: perspective(500px) rotateX(55deg); transform-origin: 50% 100%; }
.vn-luz { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 35%, rgba(255, 255, 255, .45), transparent 60%); mix-blend-mode: screen; }
.vn-glitch { position: absolute; inset: 0; opacity: 0; background: repeating-linear-gradient(0deg, rgba(255, 0, 40, .25) 0 3px, transparent 3px 7px); pointer-events: none; }

/* modo desesperación */
.vn[data-modo="desesperacion"] .vn-escenario { filter: hue-rotate(-30deg) saturate(1.6) brightness(.45) contrast(1.4); }
.vn[data-modo="desesperacion"] .vn-pared { background: linear-gradient(180deg, #3a0010, #12000a 70%); }
.vn[data-modo="desesperacion"] .vn-luz { background: radial-gradient(ellipse at 50% 30%, rgba(255, 0, 40, .55), transparent 60%); }
.vn[data-modo="desesperacion"] .pizarra::after { content: "NO HAY ESPERANZA… ¿O SÍ?"; color: #ff4d6d; }
.vn.cambiando .vn-glitch { animation: vn-glitch .6s steps(6) both; }
@keyframes vn-glitch { 0% { opacity: 1; transform: translateX(-20px); } 30% { opacity: .2; transform: translateX(16px) skewX(8deg); } 60% { opacity: 1; transform: translateX(-8px); } 100% { opacity: 0; transform: none; } }
.vn.cambiando { animation: temblor .25s steps(3) 2; }

/* personajes */
.vn-pj { position: absolute; bottom: 150px; height: min(74vh, 640px); z-index: 1; transition: transform .55s var(--ease), opacity .4s, filter .4s; pointer-events: none; }
.vn-pj img { height: 100%; width: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); }
.vn-pj.izq { left: 6%; transform: translateX(-130%); opacity: 0; }
.vn-pj.der { right: 6%; transform: translateX(130%); opacity: 0; }
.vn-pj.dentro { transform: none; opacity: 1; }
.vn-pj.callado { filter: brightness(.6) saturate(.7); }
.vn-pj.brinca img { animation: brinca .35s var(--ease); }
@keyframes brinca { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-16px) scale(1.03); } 100% { transform: none; } }
.vn-pj.respira img { animation: respira-vn 4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes respira-vn { 50% { transform: scaleY(1.008) translateY(-2px); } }
.vn[data-modo="desesperacion"] .vn-pj img { filter: drop-shadow(0 0 22px rgba(255, 0, 40, .85)) contrast(1.1); }

/* título discreto arriba */
.vn-titulo { position: absolute !important; top: 92px; left: clamp(16px, 4vw, 60px); z-index: 3; max-width: 430px !important; margin: 0; padding: 16px 20px; background: rgba(18, 6, 26, .78); border-left: 5px solid var(--rosa); backdrop-filter: blur(4px); }
.vn-titulo h1 { font-size: clamp(2rem, 4vw, 3.2rem) !important; margin: 4px 0 8px !important; }
.vn-titulo .intro { font-size: .95rem; margin-bottom: 6px; }
.vn-titulo .migas ol { margin-bottom: 10px; }

/* interruptor de modo */
.vn-modo { position: absolute; top: 96px; right: clamp(16px, 4vw, 60px); z-index: 4; display: flex; padding: 0; border: 3px solid #fff; background: #12061a; cursor: pointer; font: 400 .85rem/1 var(--f-titulo); transform: skewX(-12deg); box-shadow: 5px 5px 0 rgba(0, 0, 0, .4); }
.vn-modo span { padding: 10px 14px; color: #8a7f8f; transition: background .3s, color .3s; }
.vn[data-modo="esperanza"] .m-esp { background: #ffb347; color: #12061a; }
.vn[data-modo="desesperacion"] .m-des { background: #ff1f5a; color: #fff; }

/* caja de diálogo estilo juego */
.vn-dialogo { position: absolute; left: 50%; bottom: 22px; width: min(1100px, calc(100% - 32px)); transform: translateX(-50%); z-index: 5; min-height: 150px; padding: 34px 34px 24px; background: linear-gradient(180deg, rgba(18, 6, 26, .92), rgba(40, 8, 40, .94)); border: 3px solid #fff; box-shadow: 0 0 0 4px var(--rosa), 0 20px 50px rgba(0, 0, 0, .5); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%); }
.vn[data-modo="desesperacion"] .vn-dialogo { box-shadow: 0 0 0 4px #ff1f5a, 0 0 40px rgba(255, 0, 40, .5); }
.vn-nombre { position: absolute; top: -20px; left: 26px; padding: 6px 22px 8px; font: 400 1.15rem/1 var(--f-titulo); background: var(--rosa); color: #fff; transform: skewX(-14deg); box-shadow: 4px 4px 0 #12061a; }
.vn-nombre.der { left: auto; right: 26px; }
.vn[data-modo="desesperacion"] .vn-nombre { background: #ff1f5a; }
.vn-texto { margin: 0; font: 700 clamp(1.05rem, 1.8vw, 1.4rem)/1.5 var(--f-rotulo); color: #fff; min-height: 2.6em; }
.vn-texto em { font-style: normal; color: var(--alerta); }
.vn-sigue { position: absolute; right: 30px; bottom: 16px; color: var(--rosa); animation: parpadeo 1s steps(1) infinite; }
.vn-opciones { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.vn-opciones[hidden] { display: none; }
.vn-opciones a { padding: 10px 18px; font: 700 .9rem/1 var(--f-rotulo); color: #12061a; background: #fff; text-decoration: none; border-left: 5px solid var(--rosa); transition: transform .2s, background .2s; animation: entra .4s var(--ease) both; }
.vn-opciones a:nth-child(2) { animation-delay: .08s; } .vn-opciones a:nth-child(3) { animation-delay: .16s; }
.vn-opciones a:hover, .vn-opciones a:focus-visible { background: var(--alerta); transform: translateX(6px); }

@media (max-width: 900px) {
	.pag-heroe.vn { min-height: 760px; }
	.vn-titulo { top: 76px; left: 12px; right: 12px; max-width: none !important; padding: 12px 14px; }
	.vn-titulo .intro { display: none; }
	.vn-modo { top: auto; bottom: 236px; right: 12px; font-size: .72rem; }
	.vn-pj { height: 380px; bottom: 210px; }
	.vn-pj.izq { left: -8%; } .vn-pj.der { right: -8%; }
	.vn-dialogo { bottom: 12px; padding: 28px 18px 18px; min-height: 180px; }
	.ventana { width: 26%; } .v2 { display: none; } .pizarra { left: 36%; width: 34%; }
}
@media (prefers-reduced-motion: reduce) {
	.vn-pj, .vn-pj img, .vn-glitch, .vn.cambiando, .vn-sigue, .vn-opciones a { animation: none !important; transition: none !important; }
}
/* ajustes tras ver la grabación */
.vn-titulo { left: 50% !important; transform: translateX(-50%); top: 84px !important; text-align: center; max-width: 440px !important; padding: 12px 22px !important; }
.vn-titulo .migas ol { justify-content: center; }
.vn-titulo .intro, .vn-titulo .rotulo { display: none; }
.vn-titulo h1 { font-size: clamp(1.8rem, 3.4vw, 2.8rem) !important; }
.vn-dialogo { clip-path: none; }
.vn-pj { height: min(66vh, 580px); }
.vn-pj.izq { left: 3%; } .vn-pj.der { right: 3%; }
@media (max-width: 900px) { .vn-titulo { top: 70px !important; width: calc(100% - 24px); } .vn-pj { height: 340px; } }
