/* =====================================================================
   DOSTORATA · SISTEMA DE DISEÑO (rediseño 9)
   Un solo sistema para toda la web: retícula, tipografía, cabecera, pie,
   botones, tarjetas, transiciones y «chibis» animados.
   Cada universo SOLO cambia: paleta, texturas, iconografía y personajes.
     - sin tema           -> marca Dostorata (papel marfil, tinta, carmín)
     - data-tema="danganronpa" -> negro, rosa neón, sangre rosa
     - data-tema="pokemon"     -> azul noche, amarillo, rojo
   Fuentes locales (fuentes/).
   ===================================================================== */

@font-face {
	font-family: "Cormorant";
	src: url("fuentes/CormorantSC-Bold.ttf") format("truetype");
	font-weight: 700;
	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;
}
@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;
}

@view-transition {
	navigation: auto;
}

:root {
	/* marca */
	--fondo: #f1eadf;
	--superficie: #fbf7f0;
	--superficie-2: #e8dfd1;
	--tinta: #17121c;
	--tinta-2: #5a5060;
	--linea: rgba(23, 18, 28, 0.14);
	--acento: #c4122f;
	--acento-2: #4f2475;
	--sobre-acento: #fff;
	--brillo: rgba(196, 18, 47, 0.25);
	/* tipografía común a todo el sitio */
	--f-display: "Cormorant", "Times New Roman", serif;
	--f-ui: "Mplus", "Segoe UI", system-ui, sans-serif;
	--f-texto:
		"Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	/* fuente de rótulo propia de cada universo */
	--f-rotulo: "Mplus", "Segoe UI", sans-serif;
	--ancho: 1280px;
	--margen: clamp(20px, 5vw, 64px);
	--radio: 18px;
	--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-in: cubic-bezier(0.7, 0, 0.2, 1);
	--textura: none;
	color-scheme: light;
}
body[data-tema="danganronpa"] {
	--fondo: #0b090d;
	--superficie: #15111a;
	--superficie-2: #201a27;
	--tinta: #f6f2ef;
	--tinta-2: #b9b0be;
	--linea: rgba(255, 255, 255, 0.12);
	--acento: #ff2d8a;
	--acento-2: #8fe9ff;
	--sobre-acento: #0b0910;
	--brillo: rgba(255, 45, 138, 0.35);
	--f-rotulo: "Dela", "Mplus", sans-serif;
	--textura: repeating-linear-gradient(
		-45deg,
		rgba(255, 45, 138, 0.05) 0 2px,
		transparent 2px 14px
	);
	color-scheme: dark;
}
body[data-tema="danganronpa"][data-modo="desesperacion"] {
	--fondo: #060406;
	--superficie: #140a0c;
	--superficie-2: #22100f;
	--acento: #ff1b2d;
	--acento-2: #d9d2c5;
	--brillo: rgba(255, 27, 45, 0.4);
	--textura: repeating-linear-gradient(
		45deg,
		rgba(255, 27, 45, 0.06) 0 2px,
		transparent 2px 10px
	);
}
body[data-tema="pokemon"] {
	--fondo: #0c1736;
	--superficie: #13214a;
	--superficie-2: #1b2d5e;
	--tinta: #f4f7ff;
	--tinta-2: #b3c0e3;
	--linea: rgba(255, 255, 255, 0.13);
	--acento: #ffcb05;
	--acento-2: #ff3b3b;
	--sobre-acento: #0c1736;
	--brillo: rgba(255, 203, 5, 0.35);
	--f-rotulo: "Pixel", "Mplus", monospace;
	--textura:
		radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.6px) 0 0 /
		22px 22px;
	color-scheme: dark;
}

/* ---------------- base (solo páginas del sistema nuevo) ---------------- */
.s-pagina,
.s-pagina *,
.s-pagina *::before,
.s-pagina *::after {
	box-sizing: border-box;
}
html:has(.s-pagina) {
	scroll-behavior: smooth;
	background: var(--fondo);
}
body.s-pagina {
	margin: 0;
	background: var(--fondo);
	background-image: var(--textura);
	color: var(--tinta);
	font: 17px / 1.65 var(--f-texto);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
	transition:
		background-color 0.6s var(--ease),
		color 0.6s var(--ease);
}
.s-pagina img {
	max-width: 100%;
	display: block;
}
:where(.s-pagina) a {
	color: inherit;
}
.s-pagina :focus-visible {
	outline: 3px solid var(--acento);
	outline-offset: 3px;
}
.s-pagina ::selection {
	background: var(--acento);
	color: var(--sobre-acento);
}
.s-pagina h1,
.s-pagina h2,
.s-pagina h3 {
	font-family: var(--f-display);
	font-weight: 700;
	line-height: 0.95;
	margin: 0;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.s-pagina p {
	margin: 0 0 1em;
	text-wrap: pretty;
}
.envol {
	width: min(var(--ancho), 100% - 2 * var(--margen));
	margin-inline: auto;
}
.bloque {
	padding-block: clamp(80px, 12vw, 160px);
	position: relative;
}
.salto {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 200;
	background: var(--acento);
	color: var(--sobre-acento);
	padding: 10px 16px;
	font: 700 14px var(--f-ui);
}
.salto:focus {
	left: 8px;
}

/* rótulo pequeño */
.antetitulo {
	font: 700 12px / 1 var(--f-ui);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--acento);
	display: inline-flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 22px;
}
.antetitulo::before {
	content: "";
	width: 34px;
	height: 2px;
	background: currentColor;
}
.titular {
	font-size: clamp(44px, 7vw, 104px);
}
.titular em {
	font-style: normal;
	color: var(--acento);
}
.entradilla {
	font-size: clamp(18px, 1.6vw, 21px);
	color: var(--tinta-2);
	max-width: 58ch;
}

/* ---------------- cabecera común ---------------- */
.s-barra {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px var(--margen);
	color: var(--tinta, #f6f2ef);
	transition:
		background 0.4s,
		box-shadow 0.4s,
		padding 0.4s,
		transform 0.45s var(--ease);
	font-family: var(--f-ui, "Segoe UI", sans-serif);
}
.s-barra.solida {
	background: color-mix(in srgb, var(--fondo, #0b090d) 82%, transparent);
	backdrop-filter: blur(14px) saturate(1.3);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 1px 0 var(--linea, rgba(255, 255, 255, 0.12));
	padding-block: 9px;
}
.s-barra.oculta {
	transform: translateY(-110%);
}
.s-marca {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	margin-right: auto;
}
.s-marca img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px var(--acento, #c4122f);
	transition: transform 0.6s var(--ease);
	background: #16101c;
}
.s-marca:hover img {
	transform: rotate(-12deg) scale(1.08);
}
.s-marca span {
	font:
		700 22px / 1 "Cormorant",
		serif;
	letter-spacing: 0.06em;
}
.s-nav ul {
	list-style: none;
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
}
.s-nav a {
	position: relative;
	display: block;
	padding: 10px 14px;
	text-decoration: none;
	font: 700 14px / 1 var(--f-ui, sans-serif);
	letter-spacing: 0.04em;
	color: inherit;
	border-radius: 999px;
	transition:
		background 0.25s,
		color 0.25s;
}
.s-nav a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 5px;
	height: 2px;
	background: var(--acento, #c4122f);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.35s var(--ease);
}
.s-nav a:hover::after,
.s-nav a[aria-current]::after {
	transform: scaleX(1);
	transform-origin: left;
}
.s-nav a[aria-current] {
	color: var(--acento, #c4122f);
}
.s-hamb {
	display: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--linea, rgba(255, 255, 255, 0.2));
	background: transparent;
	color: inherit;
	cursor: pointer;
	position: relative;
}
.s-hamb span,
.s-hamb span::before,
.s-hamb span::after {
	position: absolute;
	left: 13px;
	width: 20px;
	height: 2px;
	background: currentColor;
	transition:
		transform 0.35s var(--ease),
		opacity 0.2s;
	content: "";
}
.s-hamb span {
	top: 22px;
}
.s-hamb span::before {
	left: 0;
	top: -6px;
}
.s-hamb span::after {
	left: 0;
	top: 6px;
}
.menu-abierto .s-hamb span {
	background: transparent;
}
.menu-abierto .s-hamb span::before {
	transform: translateY(6px) rotate(45deg);
}
.menu-abierto .s-hamb span::after {
	transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 900px) {
	.s-hamb {
		display: block;
		z-index: 2;
	}
	.s-nav {
		position: fixed;
		inset: 0;
		background: var(--fondo, #0b090d);
		background-image: var(--textura);
		display: grid;
		place-items: center;
		clip-path: circle(0 at calc(100% - 46px) 36px);
		transition: clip-path 0.6s var(--ease-in, ease);
		visibility: hidden;
	}
	.s-nav.abierto {
		clip-path: circle(150% at calc(100% - 46px) 36px);
		visibility: visible;
	}
	.s-nav ul {
		flex-direction: column;
		text-align: center;
		gap: 6px;
	}
	.s-nav a {
		font:
			700 clamp(34px, 9vw, 52px) / 1.1 "Cormorant",
			serif;
		padding: 8px 18px;
	}
	.s-nav a::after {
		bottom: 2px;
	}
	.s-nav li {
		opacity: 0;
		transform: translateY(18px);
		transition: 0.5s var(--ease);
	}
	.s-nav.abierto li {
		opacity: 1;
		transform: none;
	}
	.s-nav.abierto li:nth-child(2) {
		transition-delay: 0.05s;
	}
	.s-nav.abierto li:nth-child(3) {
		transition-delay: 0.1s;
	}
	.s-nav.abierto li:nth-child(4) {
		transition-delay: 0.15s;
	}
	.s-nav.abierto li:nth-child(5) {
		transition-delay: 0.2s;
	}
	.s-marca span {
		font-size: 19px;
	}
	.s-marca img {
		width: 38px;
		height: 38px;
	}
}

/* progreso de lectura */
.progreso-scroll {
	position: fixed;
	left: 0;
	top: 0;
	height: 3px;
	width: 100%;
	z-index: 101;
	background: var(--acento, #c4122f);
	transform-origin: left;
	transform: scaleX(var(--p, 0));
	pointer-events: none;
}

/* ---------------- botones comunes ---------------- */
.s-btn {
	--bg: var(--acento);
	--fg: var(--sobre-acento);
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 17px 28px;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	background: var(--bg);
	color: var(--fg);
	text-decoration: none;
	font: 900 15px / 1 var(--f-ui);
	letter-spacing: 0.03em;
	overflow: hidden;
	isolation: isolate;
	transition:
		transform 0.35s var(--ease),
		box-shadow 0.35s;
	box-shadow: 0 10px 30px -12px var(--brillo);
}
.s-btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--tinta);
	transform: translateY(101%);
	border-radius: inherit;
	transition: transform 0.45s var(--ease);
}
.s-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px -14px var(--brillo);
	color: var(--fondo);
}
.s-btn:hover::before {
	transform: none;
}
.s-btn .fl {
	transition: transform 0.35s var(--ease);
}
.s-btn:hover .fl {
	transform: translateX(5px);
}
.s-btn.hueco {
	--bg: transparent;
	--fg: var(--tinta);
	box-shadow: inset 0 0 0 1.5px var(--linea);
}
.s-btn.hueco:hover {
	color: var(--fondo);
}
.s-btn.peq {
	padding: 12px 20px;
	font-size: 13px;
}
.botonera {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

/* los botones antiguos (fichas y páginas de texto) adoptan el mismo aspecto */
.btn.btn-sangre,
.btn.btn-hueco {
	border-radius: 999px !important;
	clip-path: none !important;
	font-family: "Mplus", sans-serif;
	font-weight: 900;
}

/* ---------------- etiquetas ---------------- */
.chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 13px;
	border-radius: 999px;
	font: 700 12px / 1 var(--f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--superficie-2);
	color: var(--tinta);
}
.chip.fuerte {
	background: var(--acento);
	color: var(--sobre-acento);
}
.chip i {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}
.chip.vivo i {
	animation: latido 1.6s infinite;
}
@keyframes latido {
	50% {
		opacity: 0.25;
		transform: scale(0.6);
	}
}

/* ---------------- aparición al hacer scroll ---------------- */
.js .s-pagina .revela {
	opacity: 0;
	transform: translateY(34px);
	transition:
		opacity 0.9s var(--ease),
		transform 0.9s var(--ease);
	transition-delay: var(--d, 0s);
}
.js .s-pagina .revela.visto {
	opacity: 1;
	transform: none;
}
.linea-titulo {
	display: block;
	overflow: hidden;
	padding-bottom: 0.08em;
}
.linea-titulo > span {
	display: block;
	transform: translateY(105%);
	transition: transform 1.1s var(--ease);
	transition-delay: var(--d, 0s);
}
.cargada .linea-titulo > span,
.no-anim .linea-titulo > span {
	transform: none;
}
.sin-js .linea-titulo > span {
	transform: none;
}

/* ---------------- telón entre páginas ---------------- */
.telon {
	position: fixed;
	inset: 0;
	z-index: 300;
	pointer-events: none;
	display: grid;
	place-items: center;
	background: var(--tinta, #17121c);
	transform: scaleY(0);
	transform-origin: bottom;
}
.telon img {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	opacity: 0;
}
.telon.cierra {
	transition: transform 0.45s var(--ease-in);
	transform: scaleY(1);
}
.telon.cierra img {
	opacity: 1;
	transition: opacity 0.2s 0.25s;
}
.telon.abre {
	transform: scaleY(1);
	transform-origin: top;
	animation: telon-abre 0.7s var(--ease-in) 0.05s forwards;
}
@keyframes telon-abre {
	to {
		transform: scaleY(0);
	}
}

/* =====================================================================
   CHIBIS: el mismo componente para todos los universos
   <div class="chibi" data-frase="..."><img src="..."></div>
   ===================================================================== */
.chibi {
	position: absolute;
	width: var(--t, 72px);
	z-index: 5;
	transform: translate3d(var(--x, 0), var(--y, 0), 0);
	transition: transform var(--vel, 0s) linear;
}
.chibi > img {
	width: 100%;
	image-rendering: pixelated;
	transform: scaleX(var(--dir, 1));
	transform-origin: 50% 100%;
	animation: bote 0.9s steps(2) infinite;
	animation-play-state: var(--andando, paused);
	filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.18));
	pointer-events: auto;
	cursor: pointer;
}
.chibi.liso > img {
	image-rendering: auto;
}
.chibi::after {
	content: "";
	position: absolute;
	left: 15%;
	right: 15%;
	bottom: -4px;
	height: 8px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.28);
	filter: blur(2px);
	z-index: -1;
}
.chibi.sin-sombra::after {
	display: none;
}
@keyframes bote {
	50% {
		translate: 0 -5%;
	}
}
.chibi.salta > img {
	animation: salto 0.6s var(--ease) 1;
}
@keyframes salto {
	0%,
	100% {
		translate: 0 0;
	}
	40% {
		translate: 0 -55%;
		rotate: -8deg;
	}
	70% {
		translate: 0 0;
		scale: 1.1 0.9;
	}
}
.chibi.gira > img {
	animation: giro 0.7s var(--ease) 1;
}
@keyframes giro {
	to {
		rotate: 360deg;
	}
}
.chibi.saluda > img {
	animation: saludo 0.5s ease-in-out 4 alternate;
	transform-origin: 50% 90%;
}
@keyframes saludo {
	from {
		rotate: -10deg;
	}
	to {
		rotate: 10deg;
	}
}
.chibi.agacha > img {
	translate: 0 70%;
	transition: translate 0.3s var(--ease);
}
.chibi.mira > img {
	animation: none;
}
/* bocadillo con frase breve del autor */
.bocadillo {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	translate: -50% 6px;
	scale: 0.85;
	opacity: 0;
	pointer-events: none;
	white-space: nowrap;
	padding: 8px 12px;
	border-radius: 12px;
	background: var(--tinta);
	color: var(--fondo);
	font: 700 12px / 1.2 var(--f-ui);
	transition: 0.3s var(--ease);
	z-index: 6;
}
.bocadillo::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	translate: -50% -1px;
	border: 7px solid transparent;
	border-top-color: var(--tinta);
}
.chibi.habla .bocadillo {
	opacity: 1;
	translate: -50% 0;
	scale: 1;
}
/* objetos que lleva el chibi (consola, lupa…) */
.chibi .lleva {
	position: absolute;
	font-size: calc(var(--t, 72px) * 0.32);
	right: -18%;
	bottom: 18%;
	animation: flota 2.2s ease-in-out infinite;
}
@keyframes flota {
	50% {
		translate: 0 -6px;
	}
}
.chibi .zz {
	position: absolute;
	right: -10%;
	top: -10%;
	font: 900 18px var(--f-ui);
	color: var(--acento-2);
	animation: zz 2.4s ease-in-out infinite;
}
@keyframes zz {
	0% {
		opacity: 0;
		translate: 0 10px;
	}
	50% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		translate: 14px -24px;
	}
}

/* patio: escenario donde pasean */
.patio {
	position: relative;
	height: var(--alto, 190px);
	overflow: hidden;
}
.patio .chibi {
	bottom: var(--suelo, 22px);
	left: 0;
}
.patio-suelo {
	position: absolute;
	inset: auto 0 0;
	height: var(--suelo, 22px);
	background: var(--superficie-2);
}

/* asomados: salen por el borde de la pantalla */
.asomo {
	position: fixed;
	z-index: 90;
	width: var(--t, 84px);
	pointer-events: auto;
	transition: transform 0.6s var(--ease);
	cursor: pointer;
}
.asomo img {
	width: 100%;
	image-rendering: pixelated;
}
.asomo.izq {
	left: 0;
	top: var(--top, 60%);
	transform: translateX(-100%) rotate(90deg);
	transform-origin: 0 50%;
}
.asomo.izq.ver {
	transform: translateX(-35%) rotate(90deg);
}
.asomo.der {
	right: 0;
	top: var(--top, 45%);
	transform: translateX(100%) rotate(-90deg);
	transform-origin: 100% 50%;
}
.asomo.der.ver {
	transform: translateX(35%) rotate(-90deg);
}
.asomo.abajo {
	bottom: 0;
	right: var(--der, 8%);
	transform: translateY(100%);
}
.asomo.abajo.ver {
	transform: translateY(32%);
}
.asomo.abajo.ver:hover {
	transform: translateY(5%);
}

/* =====================================================================
   PORTADA (marca)
   ===================================================================== */
.p-heroe {
	min-height: 100svh;
	display: grid;
	align-items: center;
	position: relative;
	padding-top: 110px;
	padding-bottom: 60px;
	overflow: hidden;
}
.p-heroe .envol {
	display: grid;
	grid-template-columns: 1.25fr 0.75fr;
	gap: clamp(30px, 5vw, 80px);
	align-items: center;
}
.p-nombre {
	font-size: clamp(68px, 13.5vw, 214px);
	line-height: 0.82;
	letter-spacing: -0.035em;
	margin-left: -0.04em;
}
.p-nombre .linea-titulo + .linea-titulo { margin-top: -0.14em; padding-left: 0.9em; }
.p-nombre .rata-o {
	display: inline-block;
	color: var(--acento);
}
.p-sub {
	margin-top: 26px;
	font: 700 clamp(20px, 2.3vw, 30px) / 1.25 var(--f-display);
	max-width: 22ch;
}
.p-sub .cambia {
	display: inline-grid;
	vertical-align: bottom;
	color: var(--acento);
}
.p-sub .cambia > span {
	grid-area: 1 / 1;
	opacity: 0;
	translate: 0 60%;
	transition: 0.6s var(--ease);
}
.p-sub .cambia > span.ahora {
	opacity: 1;
	translate: 0 0;
}
.p-sub .cambia > span.fue {
	opacity: 0;
	translate: 0 -60%;
}
.p-lema {
	margin-top: 22px;
	color: var(--tinta-2);
	max-width: 46ch;
}
.p-heroe .botonera {
	margin-top: 34px;
}
.p-medalla {
	position: relative;
	aspect-ratio: 1;
	width: min(100%, 460px);
	justify-self: center;
}
.p-medalla .disco {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #16101c;
	box-shadow:
		0 40px 90px -40px rgba(79, 36, 117, 0.9),
		0 0 0 1px var(--linea);
	transform: translate3d(var(--mx, 0), var(--my, 0), 0) rotate(var(--rot, 0deg));
	transition: transform 0.6s var(--ease);
}
.p-medalla .disco img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.p-medalla .orla {
	position: absolute;
	inset: -9%;
	animation: girar 50s linear infinite;
}
.p-medalla .orla text {
	font:
		700 13px "Mplus",
		sans-serif;
	letter-spacing: 0.2em;
	fill: var(--tinta);
	text-transform: uppercase;
}
@keyframes girar {
	to {
		rotate: 360deg;
	}
}
.p-medalla .sello {
	position: absolute;
	right: -2%;
	bottom: 6%;
	width: 118px;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--acento);
	color: #fff;
	display: grid;
	place-items: center;
	text-align: center;
	font: 900 12px / 1.15 var(--f-ui);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	rotate: -12deg;
	box-shadow: 0 14px 30px -12px var(--brillo);
	transform: translate3d(
		calc(var(--mx, 0) * -1.6),
		calc(var(--my, 0) * -1.6),
		0
	);
	transition: transform 0.6s var(--ease);
}
.p-medalla .sello b {
	display: block;
	font: 700 34px / 1 var(--f-display);
}
.nieve {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}
.nieve i {
	position: absolute;
	top: -20px;
	left: var(--l);
	width: var(--s, 6px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--acento-2);
	opacity: 0.22;
	animation: cae var(--v, 14s) linear var(--r, 0s) infinite;
}
@keyframes cae {
	to {
		transform: translate3d(var(--deriva, 40px), 110vh, 0);
	}
}
.p-pie-heroe {
	position: absolute;
	left: var(--margen);
	right: var(--margen);
	bottom: 26px;
	display: flex;
	justify-content: space-between;
	font: 700 12px var(--f-ui);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--tinta-2);
}
.p-pie-heroe a {
	text-decoration: none;
	display: inline-flex;
	gap: 10px;
	align-items: center;
}
.p-pie-heroe a i {
	width: 1px;
	height: 34px;
	background: currentColor;
	display: block;
	animation: baja 2s var(--ease) infinite;
	transform-origin: top;
}
@keyframes baja {
	0% {
		transform: scaleY(0);
	}
	50% {
		transform: scaleY(1);
		transform-origin: top;
	}
	51% {
		transform-origin: bottom;
	}
	100% {
		transform: scaleY(0);
		transform-origin: bottom;
	}
}

/* cinta */
.cinta {
	overflow: hidden;
	border-block: 1px solid var(--linea);
	padding: 18px 0;
	background: var(--superficie);
}
.cinta > div {
	display: flex;
	gap: 48px;
	width: max-content;
	animation: cinta 40s linear infinite;
	font: 700 clamp(22px, 2.4vw, 32px) / 1 var(--f-display);
	white-space: nowrap;
}
.cinta span {
	display: inline-flex;
	align-items: center;
	gap: 48px;
}
.cinta span::after {
	content: "✦";
	color: var(--acento);
	font-size: 0.6em;
}
@keyframes cinta {
	to {
		transform: translateX(-50%);
	}
}

/* qué hago */
.oficio {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0;
	border-top: 1px solid var(--linea);
	margin-top: 60px;
}
.oficio article {
	padding: 34px 30px 30px 0;
	border-right: 1px solid var(--linea);
	position: relative;
}
.oficio article + article {
	padding-left: 30px;
}
.oficio article:last-child {
	border-right: 0;
}
.oficio .n {
	font: 700 15px var(--f-ui);
	color: var(--acento);
	letter-spacing: 0.1em;
}
.oficio h3 {
	font-size: clamp(30px, 3vw, 42px);
	margin: 16px 0 14px;
}
.oficio p {
	color: var(--tinta-2);
	margin: 0;
}
.oficio .icono {
	width: 56px;
	height: 56px;
	margin-bottom: 8px;
	color: var(--tinta);
	transition:
		transform 0.5s var(--ease),
		color 0.3s;
}
.oficio article:hover .icono {
	transform: rotate(-10deg) scale(1.1);
	color: var(--acento);
}

/* cómo trabajo: proceso */
.proceso {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: clamp(40px, 6vw, 100px);
	align-items: start;
}
.proceso .fijo {
	position: sticky;
	top: 120px;
}

/* cifras */
.cifras-p {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--tinta);
	color: var(--fondo);
	border-radius: var(--radio);
	overflow: hidden;
}
.cifras-p > div {
	padding: clamp(28px, 4vw, 54px) clamp(20px, 2.6vw, 36px);
	border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.cifras-p > div:last-child {
	border: 0;
}
.cifras-p b {
	display: block;
	font: 700 clamp(52px, 6.5vw, 100px) / 0.9 var(--f-display);
	color: var(--fondo);
}
.cifras-p > div:first-child b {
	color: #ff5470;
}
.cifras-p span {
	display: block;
	margin-top: 12px;
	font: 700 13px / 1.4 var(--f-ui);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.75;
}

/* universos: puertas */
.puertas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 22px;
	margin-top: 60px;
}
.puerta {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(440px, 52vw, 600px);
	padding: clamp(26px, 3vw, 40px);
	border-radius: var(--radio);
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	background: var(--superficie);
	box-shadow: inset 0 0 0 1px var(--linea);
	transition:
		transform 0.6s var(--ease),
		box-shadow 0.6s,
		color 0.5s;
}
.puerta .mundo {
	position: absolute;
	inset: 0;
	z-index: -1;
	clip-path: circle(0% at var(--cx, 80%) var(--cy, 20%));
	transition: clip-path 0.9s var(--ease);
}
.puerta:hover .mundo,
.puerta:focus-visible .mundo,
.puerta.toque .mundo {
	clip-path: circle(150% at var(--cx, 80%) var(--cy, 20%));
}
.puerta:hover,
.puerta:focus-visible,
.puerta.toque {
	transform: translateY(-6px);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.55);
	color: #fff;
}
.puerta .num-p {
	position: absolute;
	top: clamp(22px, 3vw, 34px);
	left: clamp(26px, 3vw, 40px);
	font: 700 14px var(--f-ui);
	letter-spacing: 0.14em;
}
.puerta .flecha {
	position: absolute;
	top: clamp(18px, 3vw, 30px);
	right: clamp(18px, 3vw, 30px);
	width: 58px;
	height: 58px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	box-shadow: inset 0 0 0 1.5px currentColor;
	font-size: 22px;
	transition:
		transform 0.5s var(--ease),
		background 0.4s,
		color 0.4s;
}
.puerta:hover .flecha {
	transform: rotate(-45deg);
	background: #fff;
	color: #111;
}
.puerta h3 {
	font-size: clamp(54px, 7vw, 100px);
}
.puerta p {
	max-width: 40ch;
	margin: 14px 0 18px;
	opacity: 0.85;
}
.puerta .cuenta {
	font: 700 13px var(--f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.puerta .adelanto {
	position: absolute;
	inset: 70px 0 auto;
	height: 50%;
	pointer-events: none;
}
.puerta .adelanto img {
	position: absolute;
	width: var(--t, 70px);
	image-rendering: pixelated;
	left: var(--l);
	bottom: 0;
	translate: 0 140%;
	opacity: 0;
	transition:
		translate 0.7s var(--ease) var(--d, 0s),
		opacity 0.4s var(--d, 0s);
}
.puerta:hover .adelanto img,
.puerta.toque .adelanto img {
	translate: 0 0;
	opacity: 1;
}
.puerta .adelanto img.liso {
	image-rendering: auto;
}
.mundo.dr {
	background:
		radial-gradient(circle at 80% 15%, #ff2d8a 0 10%, transparent 40%),
		repeating-linear-gradient(
			-45deg,
			rgba(255, 45, 138, 0.14) 0 3px,
			transparent 3px 16px
		),
		#0b090d;
}
.mundo.dr::after {
	content: "";
	position: absolute;
	inset: auto -10% -10% 30%;
	height: 60%;
	background: radial-gradient(
		closest-side,
		rgba(255, 45, 138, 0.5),
		transparent
	);
}
.mundo.pk {
	background:
		radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.6px) 0 0 /
		22px 22px,
		radial-gradient(circle at 80% 15%, #ffcb05 0 9%, transparent 38%),
		linear-gradient(180deg, #0c1736, #1b3a7a);
}
.mundo.pk::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 18%;
	background: repeating-linear-gradient(
		90deg,
		#2b8a3e 0 10px,
		#37a14b 10px 20px
	);
	mask: linear-gradient(transparent, #000 30%);
}
.puerta.proxima {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px var(--linea);
	border: 0;
	justify-content: center;
	align-items: flex-start;
}
.puerta.proxima h3 {
	color: transparent;
	-webkit-text-stroke: 1.2px var(--tinta);
}

/* próximos */
.agenda {
	list-style: none;
	margin: 50px 0 0;
	padding: 0;
}
.agenda li {
	border-top: 1px solid var(--linea);
}
.agenda li:last-child {
	border-bottom: 1px solid var(--linea);
}
.agenda a,
.agenda li > div {
	display: grid;
	grid-template-columns: 200px 1fr auto;
	gap: 24px;
	align-items: center;
	padding: 26px 0;
	text-decoration: none;
	transition:
		padding 0.4s var(--ease),
		background 0.4s;
}
.agenda a:hover {
	padding-inline: 18px;
	background: var(--superficie);
}
.agenda .prox-fecha {
	font: 700 13px var(--f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--acento);
}
.agenda h3 {
	font-size: clamp(28px, 3vw, 40px);
}
.agenda p {
	margin: 6px 0 0;
	color: var(--tinta-2);
}
.agenda .etiq {
	font: 700 12px var(--f-ui);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 7px 12px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--linea);
}

/* tarjetas de enlace (cómo jugar / quién soy) */
.duo {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
}
.enlace-grande {
	display: block;
	padding: clamp(28px, 4vw, 50px);
	border-radius: var(--radio);
	background: var(--superficie);
	box-shadow: inset 0 0 0 1px var(--linea);
	text-decoration: none;
	position: relative;
	overflow: hidden;
	transition: transform 0.5s var(--ease);
}
.enlace-grande::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tinta);
	transform: translateY(101%);
	transition: transform 0.6s var(--ease);
	z-index: 0;
}
.enlace-grande > * {
	position: relative;
}
.enlace-grande:hover {
	color: var(--fondo);
	transform: translateY(-4px);
}
.enlace-grande:hover::before {
	transform: none;
}
.enlace-grande h3 {
	font-size: clamp(34px, 4vw, 54px);
	margin: 14px 0 12px;
}
.enlace-grande p {
	margin: 0;
	opacity: 0.8;
	max-width: 44ch;
}

/* =====================================================================
   COLECCIÓN y FICHA: cabecera de universo (misma estructura en ambos)
   ===================================================================== */
.u-heroe {
	position: relative;
	min-height: 100svh;
	padding: 130px 0 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.u-heroe .envol {
	position: relative;
	z-index: 3;
	flex: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.u-heroe h1 {
	font-size: clamp(64px, 10vw, 156px);
	line-height: 0.85;
}
.u-heroe h1 .rotulo-u {
	display: block;
	font: 400 clamp(16px, 1.6vw, 22px) / 1 var(--f-rotulo);
	letter-spacing: 0.06em;
	color: var(--acento);
	margin-bottom: 18px;
}
.u-heroe .intro {
	margin-top: 26px;
	font-size: 19px;
	color: var(--tinta-2);
	max-width: 46ch;
}
.u-heroe .cuenta {
	font: 700 13px var(--f-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.u-heroe .patio {
	--alto: 210px;
	z-index: 2;
}
.u-heroe .patio-suelo {
	background: var(--superficie-2);
}
.migas ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px;
	padding: 0;
	font: 700 12px var(--f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tinta-2);
}
.migas li + li::before {
	content: "/";
	margin-right: 10px;
	opacity: 0.5;
}
.migas a {
	text-decoration: none;
}
.migas a:hover {
	color: var(--acento);
}

/* dos caras (Danganronpa): Hinata / Kamukura */
.dos-caras {
	position: relative;
	aspect-ratio: 4 / 4.4;
	width: min(100%, 560px);
	justify-self: center;
	--corte: 50%;
	cursor: ew-resize;
	touch-action: pan-y;
}
.dos-caras .cara {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: end center;
	overflow: hidden;
	border-radius: 50% 50% var(--radio) var(--radio);
}
.dos-caras .cara img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 8%;
	filter: contrast(1.08) saturate(1.1);
}
.dos-caras .esp {
	background: radial-gradient(circle at 50% 30%, #ffd2e6, #ff2d8a 60%, #8a0f4c);
	clip-path: inset(0 calc(100% - var(--corte)) 0 0);
}
.dos-caras .des {
	background: radial-gradient(circle at 50% 30%, #3a0508, #120203 70%);
	clip-path: inset(0 0 0 var(--corte));
}
.dos-caras .des img {
	object-position: 50% 0%;
	filter: contrast(1.15) saturate(0.85);
}
.dos-caras .tramado {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background:
		radial-gradient(rgba(0, 0, 0, 0.22) 1px, transparent 1.4px) 0 0 / 6px 6px;
	mix-blend-mode: multiply;
	pointer-events: none;
}
.dos-caras .raya {
	position: absolute;
	top: -4%;
	bottom: -4%;
	left: var(--corte);
	width: 4px;
	translate: -50%;
	background: #fff;
	box-shadow:
		0 0 22px #fff,
		0 0 40px var(--acento);
	z-index: 3;
}
.dos-caras .raya::after {
	content: "⇆";
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	color: #111;
	display: grid;
	place-items: center;
	font: 900 20px var(--f-ui);
}
.dos-caras .nombre {
	position: absolute;
	z-index: 4;
	bottom: 18px;
	font:
		400 clamp(14px, 1.5vw, 18px) / 1 "Dela",
		sans-serif;
	padding: 8px 12px;
	background: #fff;
	color: #111;
}
.dos-caras .nombre.n1 {
	left: 14px;
	rotate: -4deg;
}
.dos-caras .nombre.n2 {
	right: 14px;
	rotate: 4deg;
	background: #ff1b2d;
	color: #fff;
}
.modo-btn {
	margin-top: 30px;
	display: inline-flex;
	border-radius: 999px;
	padding: 5px;
	background: var(--superficie-2);
	border: 0;
	cursor: pointer;
	font: 900 12px var(--f-ui);
	letter-spacing: 0.12em;
	color: var(--tinta);
}
.modo-btn span {
	padding: 11px 16px;
	border-radius: 999px;
	transition: 0.4s var(--ease);
}
body:not([data-modo="desesperacion"]) .modo-btn .m1,
body[data-modo="desesperacion"] .modo-btn .m2 {
	background: var(--acento);
	color: var(--sobre-acento);
}
.sangre {
	position: absolute;
	pointer-events: none;
	z-index: 1;
	color: var(--acento);
	opacity: 0.9;
}
.cambiando .sangre {
	animation: salpica 0.7s var(--ease);
}
@keyframes salpica {
	from {
		scale: 0.2;
		opacity: 0;
	}
}

/* Pokémon: escenario con hierba y Poké Ball */
.pk-escena {
	position: relative;
	aspect-ratio: 1;
	width: min(100%, 520px);
	justify-self: center;
}
.pk-escena .bola {
	position: absolute;
	inset: 6%;
	border-radius: 50%;
	background: linear-gradient(#ff3b3b 0 48%, #111 48% 52%, #f4f4f4 52%);
	box-shadow:
		inset -20px -30px 0 rgba(0, 0, 0, 0.15),
		0 40px 80px -30px rgba(0, 0, 0, 0.7);
	animation: girar 60s linear infinite;
}
.pk-escena .bola::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22%;
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	background: #f4f4f4;
	box-shadow:
		0 0 0 12px #111,
		inset 0 0 0 10px #ddd;
}
.pk-escena .chibi {
	--t: 120px;
}

/* lista de proyectos (generada) */
.buscador {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr auto;
	gap: 14px;
	align-items: end;
	padding: 20px;
	border-radius: var(--radio);
	background: var(--superficie);
	box-shadow: inset 0 0 0 1px var(--linea);
}
.campo span {
	display: block;
	font: 700 11px var(--f-ui);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--tinta-2);
	margin-bottom: 8px;
}
.campo input,
.campo select {
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--linea);
	background: var(--fondo);
	color: var(--tinta);
	font: 16px var(--f-texto);
}
.buscador .btn {
	padding: 15px 22px;
	border-radius: 999px;
	border: 1px solid var(--linea);
	background: transparent;
	color: var(--tinta);
	font: 700 13px var(--f-ui);
	cursor: pointer;
}
.resultado {
	margin: 18px 0 0;
	font: 700 12px var(--f-ui);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tinta-2);
}
.grupo-col {
	margin-top: 60px;
}
.grupo-cab {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--linea);
	margin-bottom: 30px;
}
.grupo-cab h2 {
	font-size: clamp(40px, 5vw, 68px);
}
.grupo-n {
	font: 700 14px var(--f-ui);
	color: var(--acento);
}
.grupo-vacio {
	color: var(--tinta-2);
}
.fichas-col {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
	gap: 24px;
}
.s-pagina .ficha {
	display: flex;
	flex-direction: column;
	border-radius: var(--radio);
	overflow: hidden;
	background: var(--superficie);
	box-shadow: inset 0 0 0 1px var(--linea);
	text-decoration: none;
	transition:
		transform 0.5s var(--ease),
		box-shadow 0.5s;
}
.s-pagina .ficha:hover {
	box-shadow:
		inset 0 0 0 2px var(--acento),
		0 30px 60px -30px var(--brillo);
}
.s-pagina .ficha-img {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--superficie-2);
}
.s-pagina .ficha-img > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.9s var(--ease);
}
.s-pagina .ficha:hover .ficha-img > img {
	transform: scale(1.06);
}
.s-pagina .ficha .estado {
	position: absolute;
	left: 14px;
	top: 14px;
	padding: 7px 12px;
	border-radius: 999px;
	background: var(--acento);
	color: var(--sobre-acento);
	font: 700 11px var(--f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.s-pagina .estado-prox {
	display: none;
}
.s-pagina .ficha-cuerpo {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.s-pagina .ficha-cuerpo h3 {
	font-size: 36px;
}
.s-pagina .ficha-cuerpo h3 small {
	display: block;
	font: 700 13px var(--f-ui);
	letter-spacing: 0.06em;
	color: var(--tinta-2);
	margin-top: 8px;
}
.s-pagina .ficha-cuerpo p {
	color: var(--tinta-2);
	margin: 0;
	flex: 1;
}
.s-pagina .ficha-cuerpo .btn {
	align-self: flex-start;
	display: inline-flex;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 999px;
	background: var(--acento);
	color: var(--sobre-acento);
	font: 900 13px var(--f-ui);
}
.s-pagina .espera {
	font: 700 12px var(--f-ui);
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--acento);
}
.s-pagina .abstracto {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: var(--textura), var(--superficie-2);
}
.s-pagina .abstracto > span {
	font: 700 120px / 1 var(--f-display);
	color: var(--acento);
	opacity: 0.5;
}
.s-pagina .abstracto > i {
	position: absolute;
	bottom: 14px;
	right: 16px;
	font: 700 11px var(--f-ui);
	font-style: normal;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--tinta-2);
}
.s-pagina .muestra-sprites {
	position: absolute;
	inset: auto 0 18px;
	display: flex;
	justify-content: center;
	gap: 10px;
}
.s-pagina .muestra-sprites img {
	height: 64px;
	width: auto;
	image-rendering: pixelated;
}
.s-pagina .vacio {
	text-align: center;
	padding: 40px;
}
.aviso-marca {
	margin-top: 60px;
	font-size: 13px;
	color: var(--tinta-2);
}

/* bandas con chibis en contexto */
.escena-lado {
	position: relative;
}
.escena-lado .chibi {
	position: absolute;
}

/* pie común */
.s-pie {
	position: relative;
	background: #0e0a12;
	color: #efe8dd;
	padding: clamp(70px, 9vw, 120px) 0 40px;
	overflow: hidden;
	font-family: "Segoe UI", system-ui, sans-serif;
}
body[data-tema="pokemon"] .s-pie {
	background: #070e24;
}
.s-pie .envol {
	position: relative;
	z-index: 1;
}
.s-pie .grande {
	font:
		700 clamp(70px, 17vw, 270px) / 0.8 "Cormorant",
		serif;
	letter-spacing: -0.04em;
	margin: 0 0 50px;
	display: flex;
	align-items: center;
	gap: 0.12em;
}
.s-pie .grande img {
	width: 0.7em;
	height: 0.7em;
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--acento, #c4122f);
}
.s-pie .cols {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 30px;
	padding-top: 34px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.s-pie h4 {
	margin: 0 0 14px;
	font:
		700 12px "Mplus",
		sans-serif;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--acento, #c4122f);
}
body:not([data-tema]) .s-pie h4 {
	color: #ff5470;
}
.s-pie ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}
.s-pie a {
	color: inherit;
	text-decoration: none;
	opacity: 0.8;
}
.s-pie a:hover {
	opacity: 1;
	color: var(--acento, #ff5470);
}
.s-pie p {
	opacity: 0.7;
	font-size: 15px;
	margin: 0;
}
.s-pie .legal {
	margin-top: 50px;
	font-size: 13px;
	opacity: 0.55;
	max-width: 90ch;
}
.s-pie .patio {
	--alto: 110px;
	--suelo: 0px;
	margin-top: -40px;
	margin-bottom: 20px;
}

.aviso-flotante {
	position: fixed;
	left: 50%;
	bottom: 24px;
	translate: -50% 140%;
	z-index: 150;
	background: var(--tinta, #111);
	color: var(--fondo, #fff);
	padding: 14px 20px;
	border-radius: 999px;
	font:
		700 14px "Mplus",
		sans-serif;
	transition: translate 0.4s var(--ease);
}
.aviso-flotante.ver {
	translate: -50% 0;
}

/* fichas antiguas: chibis en contexto sobre el diseño anterior */
.contexto {
	position: relative;
}
.contexto > .chibi {
	z-index: 6;
}

/* ---------------- móvil ---------------- */
@media (max-width: 900px) {
	.p-heroe .envol,
	.u-heroe .envol {
		grid-template-columns: 1fr;
	}
	.p-medalla {
		width: min(78vw, 360px);
		order: -1;
		margin-top: 10px;
	}
	.p-heroe {
		padding-top: 96px;
	}
	.oficio {
		grid-template-columns: 1fr;
	}
	.oficio article,
	.oficio article + article {
		padding: 28px 0;
		border-right: 0;
		border-bottom: 1px solid var(--linea);
	}
	.proceso {
		grid-template-columns: 1fr;
	}
	.proceso .fijo {
		position: static;
	}
	.cifras-p {
		grid-template-columns: 1fr 1fr;
	}
	.cifras-p > div:nth-child(2) {
		border-right: 0;
	}
	.cifras-p > div:nth-child(-n + 2) {
		border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	}
	.agenda a,
	.agenda li > div {
		grid-template-columns: 1fr;
		gap: 8px;
	}
	.duo {
		grid-template-columns: 1fr;
	}
	.buscador {
		grid-template-columns: 1fr 1fr;
	}
	.buscador .campo:first-child {
		grid-column: 1 / -1;
	}
	.s-pie .cols {
		grid-template-columns: 1fr 1fr;
	}
	.s-pie .cols > div:first-child {
		grid-column: 1 / -1;
	}
	.u-heroe {
		min-height: auto;
		padding-top: 100px;
	}
	.dos-caras {
		width: min(86vw, 420px);
	}
	.pk-escena {
		width: min(80vw, 380px);
	}
	.p-pie-heroe {
		display: none;
	}
	.puerta .adelanto img {
		translate: 0 0;
		opacity: 1;
	}
}
@media (max-width: 520px) {
	.cifras-p b {
		font-size: 46px;
	}
	.buscador {
		grid-template-columns: 1fr;
	}
	.puerta {
		min-height: 420px;
	}
}

/* ---------------- menos movimiento ---------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.nieve,
	.asomo {
		display: none;
	}
	.js .s-pagina .revela {
		opacity: 1;
		transform: none;
	}
	.linea-titulo > span {
		transform: none;
	}
	@view-transition {
		navigation: none;
	}
}

/* =====================================================================
   PÁGINAS CON LA HOJA ANTERIOR (fichas, cómo jugar, quién soy, legales)
   Se alinean con el sistema: misma tipografía de títulos, mismos
   radios en botones y tarjetas, y los tokens antiguos se respetan.
   ===================================================================== */
body:not(.s-pagina) { --radio: 0px; --ancho: 1240px; --f-rotulo: "Mplus", "Segoe UI", system-ui, sans-serif; }
body:not(.s-pagina) :is(h1, h2, .titulo-proy) { font-family: "Cormorant", Georgia, serif !important; font-weight: 700; letter-spacing: -0.01em; }
body:not(.s-pagina) .cabecera h2 { font-size: clamp(44px, 6vw, 84px); line-height: 0.95; }
body:not(.s-pagina) .btn-mega { border-radius: 26px; clip-path: none; }
body:not(.s-pagina) :is(.tarjeta, .caja-nota, .ficha-datos, .pestanas, .acordeon details, .novedades > li) { border-radius: 16px; }
body:not(.s-pagina) .s-pie { margin-top: 40px; }
.brillo-cursor, .chispa { display: none !important; }

/* solo para capturas de revisión */
.captura .p-heroe, .captura .u-heroe { min-height: 900px; }

/* puertas: dos grandes y la próxima en franja */
.puertas { grid-template-columns: 1fr 1fr; }
.puerta h3 { font-size: clamp(46px, 5.4vw, 86px); overflow-wrap: anywhere; }
.puerta.proxima { grid-column: 1 / -1; min-height: 0; padding-top: 70px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 10px 40px; }
.puerta.proxima h3 { font-size: clamp(40px, 4vw, 60px); }
.puerta.proxima p { margin: 0; }
@media (max-width: 760px) { .puertas { grid-template-columns: 1fr; } }

/* redes del pie */
.s-redes { list-style: none; display: flex !important; flex-wrap: wrap; gap: 10px !important; margin: 22px 0 0 !important; padding: 0; }
.s-redes a { display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; justify-content: center; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); opacity: 1 !important; font: 700 13px "Mplus", sans-serif; }
.s-redes a:hover { background: var(--acento, #c4122f); color: #fff !important; box-shadow: none; }
.red .ini svg { display: block; margin: auto; }

html:has(body[data-tema="danganronpa"]) { background: #0b090d; }
html:has(body[data-tema="pokemon"]) { background: #0c1736; }
.u-heroe .sangre { z-index: 0; }


.puerta .adelanto { inset: 64px 0 auto; height: 120px; }
.s-pagina .muestra-sprites { bottom: 40px; }


@media (max-width: 900px) { .p-nombre { font-size: 25vw; } .p-medalla { width: min(62vw, 340px); } }


.s-barra:not(.solida) .s-nav a[aria-current] { color: inherit; }



/* =====================================================================
   REDISEÑO 10
   ===================================================================== */
.patio, .cinta { display: none !important; }

/* ---- portada: intro con collage ---- */
.p-intro { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; isolation: isolate;
	background:
		radial-gradient(60% 50% at 18% 30%, rgba(255, 45, 138, 0.45), transparent 70%),
		radial-gradient(50% 45% at 85% 25%, rgba(255, 203, 5, 0.35), transparent 70%),
		radial-gradient(60% 60% at 70% 90%, rgba(70, 120, 255, 0.45), transparent 70%),
		radial-gradient(50% 50% at 10% 95%, rgba(196, 18, 47, 0.5), transparent 70%),
		#120c18;
	color: #f6f0e8; }
.p-intro::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.3px) 0 0 / 18px 18px; }
.p-intro::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(55% 45% at 50% 52%, rgba(18, 12, 24, 0.82), rgba(18, 12, 24, 0.2) 70%, transparent), linear-gradient(transparent 70%, #120c18); }
.collage { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.collage img { position: absolute; width: var(--w); left: var(--l); top: var(--t); rotate: var(--r, 0deg); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); translate: calc(var(--px, 0) * var(--z, 1) * 30px) calc(var(--py, 0) * var(--z, 1) * 22px); animation: flotar var(--v, 7s) ease-in-out var(--dl, 0s) infinite alternate; opacity: 0; transition: translate 0.8s var(--ease); }
.cargada .collage img { opacity: 1; transition: opacity 1.2s var(--ease) var(--dl, 0s), translate 0.8s var(--ease); }
@keyframes flotar { to { transform: translateY(-16px) rotate(1.5deg); } }
.intro-texto { position: relative; z-index: 2; text-align: center; padding: 120px var(--margen) 80px; max-width: 900px; }
.intro-texto .rata { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 22px; box-shadow: 0 0 0 3px #c4122f, 0 20px 50px -10px rgba(196, 18, 47, 0.8); }
.intro-texto h1 { font-size: clamp(64px, 12vw, 180px); line-height: 0.85; letter-spacing: -0.03em; text-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); }
.intro-texto .hola { font: 700 clamp(20px, 2.4vw, 30px)/1.35 var(--f-display); margin: 24px auto 34px; max-width: 30ch; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7); }
.p-intro .s-btn { --bg: #f6f0e8; --fg: #120c18; }
.p-intro .s-btn:hover { color: #f6f0e8; }
.p-intro .s-btn::before { background: #c4122f; }

/* ---- portada: sobre mí ---- */
.yo { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.yo .foto { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(79, 36, 117, 0.9); }
.yo .foto img { width: 100%; height: 100%; object-fit: cover; }
.yo .texto p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.7; }
.yo .texto p:first-of-type::first-letter { float: left; font: 700 4.2em/0.8 var(--f-display); margin: 0.06em 0.1em 0 0; color: var(--acento); }
.firma { font: 700 34px var(--f-display); color: var(--acento); margin-top: 10px; }

/* ---- portada: carrusel de universos ---- */
.carrusel { position: relative; }
.carrusel-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 20px; padding: 0 var(--margen); scroll-padding: 0 var(--margen); cursor: grab; }
.carrusel-pista::-webkit-scrollbar { display: none; }
.carrusel-pista.arrastrando { cursor: grabbing; scroll-snap-type: none; }
.carrusel-pista.arrastrando a { pointer-events: none; }
.mundo-slide { position: relative; flex: 0 0 min(100%, 1280px); min-height: clamp(560px, 78vh, 760px); scroll-snap-align: center; border-radius: 26px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; display: flex; align-items: flex-end; }
.mundo-slide .fondo { position: absolute; inset: 0; z-index: -2; }
.mundo-slide .texto { position: relative; z-index: 2; padding: clamp(28px, 4vw, 60px); max-width: 560px; }
.mundo-slide .texto::before { content: ""; position: absolute; inset: -40% -60% -20% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.65), transparent); }
.mundo-slide .rot { font: 400 15px/1 var(--f-ui); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.mundo-slide h3 { font-size: clamp(60px, 9vw, 140px); margin: 14px 0 16px; text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
.mundo-slide p { font-size: 18px; max-width: 42ch; opacity: 0.92; }
.mundo-slide .cuenta { display: inline-block; margin: 6px 0 22px; font: 700 13px var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(6px); }
.mundo-slide .arte { position: absolute; z-index: -1; width: var(--w); right: var(--r); bottom: var(--b, 0); top: var(--t, auto); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); transition: transform 1s var(--ease); }
.mundo-slide:hover .arte { transform: translateY(-10px) scale(1.03); }
.mundo-slide .arte:nth-of-type(2n):hover { transform: none; }
.mundo-slide.dr .fondo { background: radial-gradient(60% 70% at 75% 40%, #ff2d8a, transparent 70%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 0 3px, transparent 3px 18px), linear-gradient(135deg, #1a0612, #0b090d); }
.mundo-slide.dr .fondo img { position: absolute; right: 0; top: 0; height: 100%; width: 60%; object-fit: cover; opacity: 0.35; mix-blend-mode: screen; mask: linear-gradient(90deg, transparent, #000 40%); }
.mundo-slide.dr .btn-u { --bg: #ff2d8a; --fg: #0b090d; }
.mundo-slide.pk .fondo { background: radial-gradient(50% 60% at 72% 35%, rgba(255, 203, 5, 0.65), transparent 70%), radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.6px) 0 0 / 22px 22px, linear-gradient(180deg, #0c1736, #1d4fae); }
.mundo-slide.pk .fondo::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, rgba(12, 23, 54, 0.85)); }
.mundo-slide.pk .btn-u { --bg: #ffcb05; --fg: #0c1736; }
.carrusel-mandos { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px var(--margen) 0; max-width: calc(var(--ancho) + 2 * var(--margen)); margin: 0 auto; }
.puntos { display: flex; gap: 10px; }
.puntos button { width: 12px; height: 12px; border-radius: 999px; border: 0; padding: 0; background: var(--linea); cursor: pointer; transition: width 0.4s var(--ease), background 0.3s; }
.puntos button[aria-current="true"] { width: 40px; background: var(--acento); }
.flechas { display: flex; gap: 10px; }
.flechas button { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--tinta); color: var(--fondo); font-size: 22px; transition: transform 0.3s var(--ease), background 0.3s; }
.flechas button:hover { transform: scale(1.08); background: var(--acento); }
.flechas button:disabled { opacity: 0.3; cursor: default; transform: none; background: var(--tinta); }
.carrusel-nombre { font: 700 14px var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--tinta-2); }

/* ---- reparto: tarjetas grandes con arte (ambos universos) ---- */
.reparto-u { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 50px; }
.pj { position: relative; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; isolation: isolate; background: var(--fondo-pj, var(--superficie-2)); }
.pj::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--textura); opacity: 0.9; }
.pj::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.75)); }
.pj img { position: absolute; left: 50%; bottom: -4%; width: var(--w, 92%); translate: -50% 0; transition: transform 0.8s var(--ease); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)); }
.pj:hover img { transform: translateY(-14px) scale(1.04); }
.pj figcaption { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; }
.pj b { display: block; font: 700 34px/1 var(--f-display); color: #fff; }
.pj small { display: block; margin-top: 6px; font: 700 13px/1.4 var(--f-ui); color: rgba(255, 255, 255, 0.82); }

/* ---- pasos con personaje (fichas) ---- */
.pasos-arte { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; counter-reset: pa; }
.pasos-arte > li { counter-increment: pa; position: relative; min-height: 340px; border-radius: 22px; overflow: hidden; isolation: isolate; padding: 26px 26px 24px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--fondo-paso, #1a0612); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9); }
.pasos-arte > li::before { content: counter(pa, decimal-leading-zero); position: absolute; left: 22px; top: 14px; font: 700 86px/1 "Cormorant", serif; color: rgba(255, 255, 255, 0.92); text-shadow: 0 6px 20px rgba(0, 0, 0, 0.4); z-index: 2; }
.pasos-arte > li::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.82) 72%); }
.pasos-arte .paso-arte { position: absolute; z-index: -2; right: -6%; top: -4%; height: 78%; width: auto; max-width: 80%; object-fit: contain; object-position: top right; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.45)); transition: transform 0.8s var(--ease); }
.pasos-arte > li:hover .paso-arte { transform: translateY(-8px) rotate(-2deg); }
.pasos-arte .paso-arte.cubre { inset: 0; height: 100%; width: 100%; max-width: none; object-fit: cover; object-position: center 20%; right: 0; top: 0; opacity: 0.7; }
.pasos-arte > li > span { position: relative; z-index: 1; font-size: 16px; line-height: 1.55; }
.pasos-arte b { color: var(--acento-paso, #ff6fb0); }
.pasos-arte code { background: rgba(255, 255, 255, 0.14); color: #fff; padding: 1px 6px; border-radius: 6px; }
.pasos-arte.dr > li { --fondo-paso: radial-gradient(80% 70% at 85% 15%, rgba(255, 45, 138, 0.75), transparent 70%), repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 16px), #160710; }
.pasos-arte.dr > li:nth-child(2n) { --fondo-paso: radial-gradient(80% 70% at 85% 15%, rgba(143, 233, 255, 0.5), transparent 70%), repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 16px), #0b0a18; }
.pasos-arte.pk > li { --fondo-paso: radial-gradient(70% 60% at 85% 15%, rgba(255, 203, 5, 0.6), transparent 70%), radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.6px) 0 0 / 20px 20px, linear-gradient(180deg, #12245a, #0c1736); --acento-paso: #ffcb05; }
.pasos-arte.pk > li:nth-child(2n) { --fondo-paso: radial-gradient(70% 60% at 85% 15%, rgba(255, 59, 59, 0.55), transparent 70%), radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.6px) 0 0 / 20px 20px, linear-gradient(180deg, #1d1440, #0c1736); }

/* ---- personaje grande junto a una sección (descarga, requisitos, FAQ) ---- */
.con-arte { position: relative; }
.arte-seccion { position: absolute; z-index: 0; right: max(2%, calc((100% - 1240px) / 2 - 60px)); top: var(--t, 10px); width: var(--w, 260px); pointer-events: none; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.con-arte > *:not(.arte-seccion) { position: relative; z-index: 1; }
@media (max-width: 900px) {
	.yo { grid-template-columns: 1fr; }
	.yo .foto { width: min(60vw, 280px); }
	.mundo-slide { flex-basis: 88%; min-height: 560px; }
	.mundo-slide .arte { opacity: 0.55; }
	.arte-seccion { width: calc(var(--w, 260px) * 0.5); opacity: 0.35; }
	.collage img { width: calc(var(--w) * 1.5); }
	.flechas button { width: 50px; height: 50px; }
}

/* barra clara sobre la intro oscura */
.barra-clara .s-barra:not(.solida) { color: #f6f0e8; }
.barra-clara .s-barra:not(.solida) .s-nav a[aria-current] { color: #fff; }

.captura .p-intro { min-height: 900px; }


.pj { margin: 0; }
.reparto-u { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }


.u-fondo-arte { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: 0.22; mix-blend-mode: screen; z-index: 0; pointer-events: none; mask: linear-gradient(100deg, transparent 25%, #000 75%); }
.u-fondo-arte.pk { object-fit: contain; object-position: 100% 0; opacity: 0.16; mix-blend-mode: normal; filter: blur(1px); }
body[data-tema="pokemon"] .u-heroe { background: radial-gradient(50% 60% at 75% 40%, rgba(255, 203, 5, 0.18), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(255, 59, 59, 0.15), transparent 70%); }
body[data-tema="danganronpa"] .u-heroe { background: radial-gradient(50% 60% at 75% 40%, rgba(255, 45, 138, 0.2), transparent 70%); }

.pasos-arte.pk { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }



/* =====================================================================
   REDISEÑO 11: título entero, menú con presencia, vida y «dos caras»
   ===================================================================== */
/* 1 · título de la portada siempre entero */
.intro-texto { max-width: none; width: 100%; }
.intro-texto h1 { font-size: min(17.5vw, 240px); white-space: nowrap; }
.intro-texto .hola { max-width: 32ch; }

/* 2 · menú con presencia */
.s-barra { padding: 18px var(--margen); gap: 30px; }
.s-marca { margin-right: 0; flex: 1 1 0; }
.s-marca img { width: 56px; height: 56px; }
.s-marca span { font-size: 28px; letter-spacing: 0.08em; }
.s-nav { flex: 0 0 auto; }
.s-nav ul { gap: 6px; padding: 7px; border-radius: 999px; background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.s-nav a { font: 900 16px/1 var(--f-ui, "Mplus", sans-serif); letter-spacing: 0.03em; padding: 14px 22px; isolation: isolate; overflow: hidden; }
.s-nav a::after { display: none; }
.s-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--acento, #c4122f); transform: translateY(105%) scaleX(0.6); transition: transform 0.45s var(--ease); }
.s-nav a:hover { color: var(--sobre-acento, #fff) !important; }
.s-nav a:hover::before { transform: none; }
.s-nav a[aria-current] { color: var(--sobre-acento, #fff) !important; }
.s-nav a[aria-current]::before { transform: none; box-shadow: 0 8px 24px -8px var(--brillo); }
.s-barra .s-extra { flex: 1 1 0; display: flex; justify-content: flex-end; }
.s-barra .s-extra a { font: 900 14px var(--f-ui, sans-serif); text-decoration: none; padding: 13px 20px; border-radius: 999px; background: var(--tinta, #17121c); color: var(--fondo, #fff); transition: transform 0.3s var(--ease); }
.barra-clara .s-barra:not(.solida) .s-extra a { background: #f6f0e8; color: #120c18; }
.s-barra .s-extra a:hover { transform: translateY(-2px) rotate(-2deg); }
@media (max-width: 1100px) { .s-barra .s-extra { display: none; } .s-marca { flex: 0 1 auto; margin-right: auto; } }
@media (max-width: 900px) {
	.s-nav ul { background: none; box-shadow: none; backdrop-filter: none; padding: 0; }
	.s-nav a { font: 700 clamp(40px, 11vw, 60px)/1.05 "Cormorant", serif; padding: 10px 26px; }
	.s-hamb { width: auto; height: 52px; padding: 0 18px 0 50px; border-radius: 999px; font: 900 14px var(--f-ui, sans-serif); background: var(--acento, #c4122f); color: var(--sobre-acento, #fff); border: 0; }
	.s-hamb::after { content: "Menú"; }
	.menu-abierto .s-hamb::after { content: "Cerrar"; }
	.s-hamb span { left: 18px; top: 25px; }
	.s-marca img { width: 46px; height: 46px; }
	.s-marca span { font-size: 22px; }
}

/* 3 · vida: flotación, respiración, reacciones */
@keyframes respira { 50% { transform: translateY(-10px) scale(1.015); } }
@keyframes respira2 { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.arte-seccion, .pj img, .paso-arte, .mundo-slide .arte, .pk-escena img, .dos-caras .cara img { animation: respira 5.5s ease-in-out infinite; }
.pj:nth-child(2n) img, .mundo-slide .arte:nth-of-type(2n), .pasos-arte > li:nth-child(2n) .paso-arte { animation-name: respira2; animation-duration: 6.5s; }
.pj:nth-child(3n) img { animation-delay: -2s; }
.collage { pointer-events: auto; }
.collage img { pointer-events: auto; cursor: pointer; }
.collage img.brinca { animation: brinco 0.8s var(--ease) 1, flotar var(--v, 7s) ease-in-out 0.8s infinite alternate; }
@keyframes brinco { 0% { transform: none; } 35% { transform: translateY(-40px) rotate(-8deg) scale(1.08); } 65% { transform: translateY(0) scale(1.06, 0.94); } 100% { transform: none; } }
.pj, .pasos-arte > li, .mundo-slide { transition: transform 0.5s var(--ease), box-shadow 0.5s; transform-style: preserve-3d; }
.pj:hover img, .pasos-arte > li:hover .paso-arte { animation: brinco 0.8s var(--ease) 1; }
.pj:hover { box-shadow: 0 30px 60px -20px var(--brillo); }
/* partículas temáticas */
.chispas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.chispas i { position: absolute; left: var(--l); top: var(--t); font-style: normal; font-size: var(--s); color: var(--c, #fff); opacity: 0; animation: chispa var(--v) ease-in-out var(--r) infinite; text-shadow: 0 0 12px currentColor; }
@keyframes chispa { 0%, 100% { opacity: 0; transform: translateY(20px) scale(0.4) rotate(0deg); } 40%, 60% { opacity: 0.9; } 50% { transform: translateY(-30px) scale(1) rotate(90deg); } }
/* entradas con carácter */
.js .s-pagina .titular.revela { clip-path: inset(0 100% 0 0); transform: none; opacity: 1; transition: clip-path 1.1s var(--ease-in); }
.js .s-pagina .titular.revela.visto { clip-path: inset(0 0 -20% 0); }
.js .s-pagina .pj.revela, .js .pasos-arte > li { transform: translateY(60px) rotate(var(--giro, -3deg)) scale(0.92); }
.js .s-pagina .pj.revela:nth-child(2n) { --giro: 3deg; }
.js .s-pagina .pj.revela.visto { transform: none; }
.pasos-arte.visto > li, .pestanas.visto .pasos-arte > li, .no-anim .pasos-arte > li { transform: none; opacity: 1; }
.js .pasos-arte > li { opacity: 0; transition: transform 0.9s var(--ease), opacity 0.6s; }
.js .pasos-arte > li:nth-child(2) { transition-delay: 0.08s; } .js .pasos-arte > li:nth-child(3) { transition-delay: 0.16s; } .js .pasos-arte > li:nth-child(4) { transition-delay: 0.24s; } .js .pasos-arte > li:nth-child(5) { transition-delay: 0.32s; } .js .pasos-arte > li:nth-child(6) { transition-delay: 0.4s; }
.pasos-arte > li.dentro { transform: none !important; opacity: 1 !important; }

/* 4 · dos caras: cabecera protagonista */
body[data-tema="danganronpa"] .u-heroe { min-height: 100svh; }
body[data-tema="danganronpa"] .u-heroe .envol { grid-template-columns: 0.85fr 1.15fr; }
body[data-tema="danganronpa"] .u-heroe h1 { font-size: clamp(60px, 8.6vw, 150px); }
.dos-caras { width: min(100%, 720px); aspect-ratio: 1 / 1.02; }
.dos-caras .cara { border-radius: 46% 46% 28px 28px; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.dos-caras .des { background: radial-gradient(circle at 48% 30%, #ff1b2d55, transparent 45%), radial-gradient(circle at 50% 30%, #3a0508, #0a0102 70%); }
.dos-caras .aura { position: absolute; inset: -10%; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, #ff1b2d, transparent 20%, #6b0010 40%, transparent 60%, #ff1b2d 80%, transparent); filter: blur(40px); opacity: 0; transition: opacity 0.6s; animation: girar 6s linear infinite; }
body[data-modo="desesperacion"] .dos-caras .aura { opacity: 0.85; }
.dos-caras .ojos { position: absolute; left: 48%; top: 26%; width: 14%; aspect-ratio: 2; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 40, 40, 0.95), rgba(255, 0, 0, 0.35) 45%, transparent); mix-blend-mode: screen; opacity: 0; filter: blur(2px); z-index: 2; clip-path: inset(0 0 0 0); pointer-events: none; }
body[data-modo="desesperacion"] .dos-caras .ojos { opacity: 1; animation: ojos 1.6s ease-in-out infinite; }
@keyframes ojos { 50% { opacity: 0.45; scale: 1.25; } }
.dos-caras .des::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; pointer-events: none; }
body[data-modo="desesperacion"] { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='9' fill='none' stroke='%23ff1b2d' stroke-width='3'/%3E%3Cpath d='M16 0v10M16 22v10M0 16h10M22 16h10' stroke='%23ff1b2d' stroke-width='3'/%3E%3C/svg%3E") 16 16, crosshair; }
body[data-modo="desesperacion"] .u-heroe h1 { text-shadow: 3px 0 #ff1b2d, -3px 0 #2bd9ff; animation: temblor 3s steps(1) infinite; }
@keyframes temblor { 0%, 92%, 100% { transform: none; } 93% { transform: translate(-4px, 2px) skewX(-6deg); } 95% { transform: translate(5px, -2px); } 97% { transform: translate(-2px, 0) skewX(4deg); } }
body[data-modo="desesperacion"] .modo-btn { box-shadow: 0 0 0 2px #ff1b2d, 0 0 40px #ff1b2d88; }
/* la ruptura */
.ruptura { position: fixed; inset: 0; z-index: 250; pointer-events: none; display: none; }
.ruptura.activa { display: block; }
.ruptura .destello { position: absolute; inset: 0; background: #ff1b2d; mix-blend-mode: screen; animation: destello 0.9s ease-out forwards; }
.ruptura.blanca .destello { background: #ffd1e6; }
@keyframes destello { 0% { opacity: 0; } 8% { opacity: 0.95; } 20% { opacity: 0.2; } 30% { opacity: 0.7; } 100% { opacity: 0; } }
.ruptura .franja { position: absolute; left: -10%; right: -10%; height: var(--h); top: var(--t); background: var(--c); mix-blend-mode: difference; animation: franja 0.7s steps(4) forwards; }
@keyframes franja { 0% { transform: translateX(var(--x)); opacity: 1; } 100% { transform: translateX(calc(var(--x) * -1)); opacity: 0; } }
.ruptura svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: grietas 1.4s ease-out forwards; }
.ruptura svg path { fill: none; stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 0 6px #ff1b2d); stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: traza 0.35s ease-out forwards; }
@keyframes traza { to { stroke-dashoffset: 0; } }
@keyframes grietas { 0%, 55% { opacity: 1; } 100% { opacity: 0; } }
.sacude { animation: sacudida 0.55s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes sacudida { 10%, 90% { transform: translate3d(-2px, 1px, 0); } 20%, 80% { transform: translate3d(5px, -3px, 0); } 30%, 50%, 70% { transform: translate3d(-9px, 4px, 0) rotate(-0.4deg); } 40%, 60% { transform: translate3d(9px, -4px, 0) rotate(0.4deg); } }
@media (max-width: 900px) {
	body[data-tema="danganronpa"] .u-heroe .envol { grid-template-columns: 1fr; }
	.dos-caras { width: min(92vw, 520px); }
}
@media (prefers-reduced-motion: reduce) { .ruptura { display: none !important; } }

.p-intro { grid-template-columns: 100%; }
.intro-texto { min-width: 0; }
@media (max-width: 600px) { .intro-texto h1 { font-size: 19vw; } .intro-texto { padding-inline: 18px; } }


body[data-tema="danganronpa"] .u-heroe .envol { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
body[data-tema="danganronpa"] .u-heroe h1 { font-size: clamp(54px, 6.6vw, 128px); }
.dos-caras { width: min(100%, 760px); }


body[data-tema="danganronpa"] .u-heroe h1 { font-size: clamp(46px, 5.4vw, 108px); }
.dos-caras { width: min(100%, 640px); }
body[data-tema="danganronpa"][data-modo="desesperacion"] .u-heroe { background: radial-gradient(55% 65% at 72% 40%, rgba(255, 27, 45, 0.32), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(120, 0, 10, 0.4), transparent 70%); }


@media (max-width: 900px) { body[data-tema="danganronpa"] .u-heroe .envol { grid-template-columns: minmax(0, 1fr); } body[data-tema="danganronpa"] .u-heroe h1 { font-size: clamp(46px, 13vw, 80px); } .dos-caras { width: min(92vw, 520px); } }



/* =====================================================================
   REDISEÑO 12: modesto y profesional
   ===================================================================== */
/* -- cambio Esperanza / Desesperación: suave y elegante -- */
.ruptura { display: none !important; }
.sacude { animation: none !important; }
body[data-modo="desesperacion"] { cursor: auto; }
body[data-modo="desesperacion"] .u-heroe h1 { text-shadow: none; animation: parpadeo 7s ease-in-out infinite; }
@keyframes parpadeo { 0%, 96%, 100% { opacity: 1; } 97% { opacity: 0.82; } 98% { opacity: 1; } 99% { opacity: 0.9; } }
body[data-modo="desesperacion"] .modo-btn { box-shadow: none; }
body[data-tema="danganronpa"][data-modo="desesperacion"] {
	--fondo: #100a0c; --superficie: #1b1114; --superficie-2: #28181c;
	--tinta: #f3ece6; --tinta-2: #c9b9b4; --acento: #e23b4e; --acento-2: #d8c9b0; --sobre-acento: #fff; --brillo: rgba(226, 59, 78, 0.3);
	--textura: repeating-linear-gradient(45deg, rgba(226, 59, 78, 0.04) 0 2px, transparent 2px 12px);
}
@property --corte { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.dos-caras { transition: --corte 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
body.s-pagina, .s-btn, .s-nav a::before, .modo-btn span, .ficha, .chip, .antetitulo, .titular em, .u-heroe h1 .rotulo-u, .campo input, .campo select, .buscador, .pj, .s-pie h4 { transition: background-color 0.8s ease, color 0.8s ease, box-shadow 0.8s ease, border-color 0.8s ease, transform 0.5s var(--ease); }
body[data-tema="danganronpa"] .u-heroe { background: none; }
body[data-tema="danganronpa"] .u-heroe::before, body[data-tema="danganronpa"] .u-heroe::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; transition: opacity 0.9s ease; }
body[data-tema="danganronpa"] .u-heroe::before { background: radial-gradient(50% 60% at 72% 42%, rgba(255, 45, 138, 0.2), transparent 70%); }
body[data-tema="danganronpa"] .u-heroe::after { background: radial-gradient(50% 60% at 72% 42%, rgba(226, 59, 78, 0.22), transparent 70%), linear-gradient(transparent 60%, rgba(16, 10, 12, 0.6)); opacity: 0; }
body[data-modo="desesperacion"] .u-heroe::before { opacity: 0; }
body[data-modo="desesperacion"] .u-heroe::after { opacity: 1; }
.dos-caras .aura { filter: blur(50px); }
body[data-modo="desesperacion"] .dos-caras .aura { opacity: 0.3; }
body[data-modo="desesperacion"] .dos-caras .ojos { opacity: 0.55; animation: none; }
.dos-caras .raya { width: 2px; box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
.dos-caras .tramado { opacity: 0.5; }
.dos-caras .des::after { opacity: 0.4; }

/* -- movimiento sutil -- */
@keyframes respira { 50% { transform: translateY(-6px); } }
@keyframes respira2 { 50% { transform: translateY(-8px) rotate(-0.6deg); } }
@keyframes brinco { 0% { transform: none; } 40% { transform: translateY(-14px) rotate(-2deg); } 100% { transform: none; } }
.chispas i { text-shadow: none; }
@keyframes chispa { 0%, 100% { opacity: 0; transform: translateY(10px) scale(0.6); } 50% { opacity: 0.45; transform: translateY(-14px) scale(1); } }
.js .s-pagina .pj.revela, .js .pasos-arte > li { transform: translateY(30px); }
.js .s-pagina .pj.revela:nth-child(2n) { --giro: 0deg; }

/* -- radios y sombras coherentes -- */
:root { --radio: 20px; --sombra-suave: 0 1px 2px rgba(0, 0, 0, 0.12), 0 12px 32px -12px rgba(0, 0, 0, 0.35); --sombra-alta: 0 2px 4px rgba(0, 0, 0, 0.12), 0 30px 60px -24px rgba(0, 0, 0, 0.5); }
.pj, .pasos-arte > li, .mundo-slide, .s-pagina .ficha, .buscador, .enlace-grande, .marco-u { border-radius: var(--radio); }
.pj, .pasos-arte > li, .s-pagina .ficha, .enlace-grande { box-shadow: var(--sombra-suave), inset 0 0 0 1px var(--linea); }
.pj:hover, .s-pagina .ficha:hover, .pasos-arte > li:hover { box-shadow: var(--sombra-alta), inset 0 0 0 1px color-mix(in srgb, var(--acento) 60%, transparent); }
.mundo-slide { box-shadow: var(--sombra-alta); }

/* -- catálogo escalable -- */
.catalogo { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; margin-top: 34px; }
.buscador { grid-template-columns: 2fr 1fr 1fr 1fr auto; }
.s-pagina .ficha { height: 100%; }
.s-pagina .ficha-img { aspect-ratio: 16 / 10; }
.s-pagina .ficha .estado { left: 14px; top: 14px; backdrop-filter: blur(8px); }
.s-pagina .ficha .estado.e-proximamente { background: rgba(0, 0, 0, 0.55); color: #fff; }
.s-pagina .ficha .estado.e-en-progreso { background: var(--acento-2); color: #111; }
.ficha-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.ficha-meta span { font: 700 11px/1 var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; background: var(--superficie-2); color: var(--tinta-2); }
.s-pagina .ficha-cuerpo h3 { font-size: 32px; }
.ficha-prog { display: flex; align-items: center; gap: 12px; font: 700 12px var(--f-ui); color: var(--tinta-2); letter-spacing: 0.06em; text-transform: uppercase; }
.barra-prog { flex: 1; height: 6px; border-radius: 999px; background: var(--superficie-2); overflow: hidden; }
.barra-prog i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--acento); }
.barra-prog.vacia { background: repeating-linear-gradient(-45deg, var(--superficie-2) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px var(--linea); }
.s-pagina .abstracto { background: var(--textura), radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--acento) 40%, transparent), transparent 60%), var(--superficie-2); }
@media (max-width: 900px) { .buscador { grid-template-columns: 1fr 1fr; } }

/* -- marco con composición (Pokémon) -- */
.marco-u { position: relative; aspect-ratio: 1 / 1.02; width: min(100%, 640px); justify-self: center; border-radius: 46% 46% 28px 28px; overflow: hidden; isolation: isolate; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9); }
.marco-u .marco-fondo { position: absolute; inset: 0; z-index: -1; background: radial-gradient(rgba(255, 255, 255, 0.12) 1.5px, transparent 1.6px) 0 0 / 20px 20px, radial-gradient(60% 50% at 60% 30%, #ffcb05, transparent 70%), radial-gradient(70% 60% at 20% 90%, #ff3b3b88, transparent 70%), linear-gradient(180deg, #1d4fae, #0c1736); }
.marco-u .marco-fondo::after { content: ""; position: absolute; left: 50%; bottom: -38%; width: 90%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; border: 18px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 46px rgba(255, 255, 255, 0.04); }
.marco-u .capa { position: absolute; width: var(--w); left: var(--l); top: var(--t); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.45)); translate: calc(var(--px, 0) * var(--z) * 18px) calc(var(--py, 0) * var(--z) * 12px); transition: translate 0.6s var(--ease); animation: respira 6s ease-in-out infinite; }
.marco-u .capa:nth-child(2n) { animation-name: respira2; animation-duration: 7s; }
.marco-u .nombre-marco { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; border-radius: 12px; background: #ffcb05; color: #0c1736; font: 900 13px/1.2 var(--f-ui); rotate: 3deg; box-shadow: var(--sombra-suave); }
@media (max-width: 900px) { .marco-u { width: min(92vw, 520px); } }


/* =====================================================================
   REDISEÑO 12b: sobriedad y orden (portada útil, catálogo, idles)
   ===================================================================== */
/* marca: oscuro neutro con un acento */
:root {
	--fondo: #111413; --superficie: #181c1b; --superficie-2: #222826; --tinta: #e7e4dd; --tinta-2: #a7aca8;
	--linea: rgba(231, 228, 221, 0.1); --acento: #e5485f; --acento-2: #d9b56a; --sobre-acento: #fff; --brillo: rgba(229, 72, 95, 0.28);
	color-scheme: dark;
}
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.yo .texto p:first-of-type::first-letter { color: var(--acento); }
.s-pie { background: #0b0d0c; }

/* barra: botón buscar */
.s-barra .s-extra a { display: inline-flex; align-items: center; gap: 8px; background: var(--superficie-2); color: var(--tinta); box-shadow: inset 0 0 0 1px var(--linea); }
.barra-clara .s-barra:not(.solida) .s-extra a { background: rgba(255, 255, 255, 0.12); color: #fff; }
.s-barra .s-extra a:hover { transform: translateY(-1px); background: var(--acento); color: #fff; }
.s-nav a { font-size: 15px; padding: 12px 18px; }

/* buscador y contador */
.busca-portada { position: relative; z-index: 5; margin-top: -48px; }
.busca-caja { position: relative; display: flex; align-items: center; gap: 14px; padding: 0 22px; height: 70px; border-radius: 999px; background: var(--superficie); box-shadow: var(--sombra-alta), inset 0 0 0 1px var(--linea); transition: box-shadow 0.3s; }
.busca-caja:focus-within { box-shadow: var(--sombra-alta), inset 0 0 0 2px var(--acento); }
.busca-caja svg { flex: none; color: var(--tinta-2); transition: color 0.3s, transform 0.4s var(--ease); }
.busca-caja:focus-within svg { color: var(--acento); transform: rotate(-12deg) scale(1.1); }
.busca-caja input { flex: 1; height: 100%; border: 0; background: none; color: var(--tinta); font: 18px var(--f-texto); outline: none; }
.busca-caja input::placeholder { color: var(--tinta-2); }
.busca-res { position: absolute; left: 0; right: 0; top: calc(100% + 10px); list-style: none; margin: 0; padding: 8px; border-radius: 20px; background: var(--superficie); box-shadow: var(--sombra-alta), inset 0 0 0 1px var(--linea); max-height: 60vh; overflow: auto; animation: aparece 0.25s var(--ease); }
@keyframes aparece { from { opacity: 0; transform: translateY(-6px); } }
.busca-res a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; text-decoration: none; transition: background 0.2s; }
.busca-res a:hover, .busca-res a:focus-visible { background: var(--superficie-2); }
.busca-res img, .busca-res .sin-img { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; background: var(--superficie-2); display: grid; place-items: center; }
.busca-res b { display: block; }
.busca-res small { color: var(--tinta-2); font: 700 12px var(--f-ui); }
.busca-res .nada { padding: 14px; color: var(--tinta-2); }
.contador { text-align: center; margin: 22px 0 0; font: 700 14px var(--f-ui); letter-spacing: 0.04em; color: var(--tinta-2); }
.contador b { color: var(--tinta); font-size: 18px; }
.contador i { font-style: normal; margin: 0 8px; opacity: 0.4; }
.cab-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; margin-bottom: 10px; }
.cab-fila .entradilla { margin: 0; }
@media (max-width: 900px) { .cab-fila { grid-template-columns: 1fr; } .busca-caja { height: 60px; } }

/* noticias */
.noticias { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.noticias a { display: grid; grid-template-columns: 200px 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; border-radius: var(--radio); background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.noticias a:hover { transform: translateX(6px); box-shadow: inset 0 0 0 1px var(--acento); }
.noticias time { font: 700 12px var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--acento); }
.noticias h3 { font-size: 26px; }
.noticias p { margin: 6px 0 0; color: var(--tinta-2); }
.noticias .fl { font-size: 20px; color: var(--tinta-2); transition: transform 0.3s var(--ease); }
.noticias a:hover .fl { transform: translateX(4px); color: var(--acento); }
.aviso-fans { margin-top: 40px; padding: 18px 22px; border-radius: 16px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linea); color: var(--tinta-2); font-size: 15px; }
@media (max-width: 760px) { .noticias a { grid-template-columns: 1fr; gap: 6px; } }

/* tarjetas del catálogo: la portada cobra vida al pasar el ratón */
.s-pagina .ficha-img > img { transition: transform 1.2s var(--ease), filter 0.6s; }
.s-pagina .ficha:hover .ficha-img > img { transform: scale(1.07) translate(-1.5%, -1%); filter: saturate(1.15); }
.s-pagina .ficha-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.9s var(--ease); pointer-events: none; }
.s-pagina .ficha:hover .ficha-img::after { transform: translateX(120%); }
.s-pagina .ficha .btn .fl { display: inline-block; transition: transform 0.3s var(--ease); }
.s-pagina .ficha:hover .btn .fl { transform: translateX(4px); }
.barra-prog i { transform-origin: left; animation: llena 1.2s var(--ease) both; }
@keyframes llena { from { transform: scaleX(0); } }

/* filtros: microinteracciones */
.campo input, .campo select { transition: box-shadow 0.25s, border-color 0.25s, background-color 0.25s; }
.campo input:focus, .campo select:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acento) 22%, transparent); }
.campo:focus-within span { color: var(--acento); }
.s-btn:active, .buscador .btn:active { transform: translateY(0) scale(0.97); }

/* idles: respiración desde los pies y balanceo leve, gestos cada pocos segundos */
@keyframes idle { 0%, 100% { transform: translateY(0) scale(1, 1) rotate(0deg); } 50% { transform: translateY(-3px) scale(1.006, 1.014) rotate(-0.4deg); } }
.pj img, .mundo-slide .arte, .marco-u .capa, .collage img, .arte-seccion, .paso-arte, .dos-caras .cara img { transform-origin: 50% 100%; animation: idle 4.6s ease-in-out infinite; }
.pj:nth-child(2n) img, .mundo-slide .arte:nth-of-type(2n), .marco-u .capa:nth-child(2n), .collage img:nth-child(2n) { animation-duration: 5.4s; animation-delay: -1.3s; }
.marco-u .capa:nth-child(3n), .collage img:nth-child(3n) { animation-duration: 6.1s; animation-delay: -2.6s; }
@keyframes gesto { 0% { transform: none; } 30% { transform: translateY(-10px) rotate(-2deg); } 60% { transform: translateY(0) scale(1.02, 0.98); } 100% { transform: none; } }
.gesto { animation: gesto 0.8s var(--ease) 1 !important; }


/* =====================================================================
   REDISEÑO 12c: movimiento de estudio (menos es más)
   Duraciones 200-600 ms, curvas suaves, desplazamientos pequeños.
   ===================================================================== */
:root { --ease: cubic-bezier(0.22, 0.61, 0.36, 1); --ease-in: cubic-bezier(0.65, 0, 0.35, 1); }
/* idles: solo respiración muy leve (sin deformar ni girar) */
@keyframes idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
.pj img, .mundo-slide .arte, .marco-u .capa, .collage img, .arte-seccion, .paso-arte, .dos-caras .cara img, .pk-escena img { animation: idle 6s ease-in-out infinite !important; transform-origin: 50% 100%; }
.collage img.brinca, .gesto { animation: idle 6s ease-in-out infinite !important; }
.pj:hover img, .pasos-arte > li:hover .paso-arte, .mundo-slide:hover .arte { animation: idle 6s ease-in-out infinite !important; transform: none; }
.mundo-slide:hover .arte { transform: none; }
.chispas, .nieve, .sangre { display: none !important; }
/* sin destellos baratos */
.s-pagina .ficha-img::after { display: none; }
.s-pagina .ficha:hover .ficha-img > img { transform: scale(1.03); filter: none; }
.s-pagina .ficha-img > img { transition: transform 0.6s var(--ease); }
/* hover de tarjetas y botones: pequeño y suave */
.pj, .pasos-arte > li, .mundo-slide, .s-pagina .ficha, .enlace-grande, .noticias a { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease) !important; }
.s-btn { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s; }
.s-btn::before { transition: transform 0.4s var(--ease); }
.s-btn:hover { transform: translateY(-2px); }
.s-btn:hover .fl { transform: translateX(3px); }
.s-nav a::before { transition: transform 0.35s var(--ease), background-color 0.6s; }
.s-marca:hover img { transform: rotate(-6deg); }
.noticias a:hover { transform: translateX(3px); }
.enlace-grande:hover { transform: translateY(-2px); }
/* entradas: fundido corto con desplazamiento pequeño */
.js .s-pagina .revela { transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .s-pagina .titular.revela { clip-path: none; opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .s-pagina .titular.revela.visto { opacity: 1; transform: none; }
.js .s-pagina .pj.revela, .js .pasos-arte > li { transform: translateY(16px); }
.js .pasos-arte > li { transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
.linea-titulo > span { transition: transform 0.6s var(--ease); }
.collage img { transition: opacity 0.6s var(--ease), translate 0.6s var(--ease) !important; }
.cargada .collage img { transition: opacity 0.6s var(--ease) var(--dl, 0s), translate 0.6s var(--ease) !important; }
.telon.cierra { transition: transform 0.4s var(--ease-in); }
@keyframes telon-abre { to { transform: scaleY(0); } }
.telon.abre { animation-duration: 0.5s; }
/* dos caras: la raya sigue al ratón sin retardo raro */
.dos-caras { transition: --corte 0.4s var(--ease); }
.modo-btn span { transition: background-color 0.5s var(--ease), color 0.5s var(--ease); }

.intro-texto .hola { max-width: min(32ch, 100%); }
@media (max-width: 600px) { .intro-texto .hola { font-size: 18px; } .intro-texto { width: 100vw; max-width: 100vw; } }



/* =====================================================================
   REDISEÑO 13: vídeo, primer pantallazo útil y buscador
   ===================================================================== */
.vid { position: relative; overflow: hidden; background: #0b090d center / cover no-repeat; }
.vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease); }
.vid video.listo { opacity: 1; }
.fondo-vid { position: absolute !important; inset: 0; z-index: 0; }
.velo { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.con-vid > *:not(.fondo-vid):not(.velo) { position: relative; z-index: 2; }

/* portada: primer pantallazo */
.p-intro.v2 { min-height: 100svh; display: block; padding: 120px 0 36px; background: #0d0a0f; }
.p-intro.v2::after, .p-intro.v2::before { display: none; }
.p-intro.v2 .velo { background: linear-gradient(90deg, rgba(10, 8, 12, 0.92) 0%, rgba(10, 8, 12, 0.7) 45%, rgba(10, 8, 12, 0.45) 100%), linear-gradient(transparent 55%, #0d0a0f); }
.p-intro-rejilla { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-rows: auto auto; gap: 28px 48px; align-items: center; color: #f3eee8; }
.hola-nombre { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font: 700 22px var(--f-display); letter-spacing: 0.08em; }
.hola-nombre img { border-radius: 50%; box-shadow: 0 0 0 2px var(--acento); }
.frase { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; }
.frase em { font-style: normal; color: #ff6f86; }
.p-intro.v2 .sub { margin: 18px 0 24px; font-size: 18px; color: #cfc8c2; max-width: 44ch; }
.p-intro.v2 .busca-caja { height: 60px; max-width: 560px; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); color: #fff; }
.p-intro.v2 .busca-caja input { color: #fff; }
.p-intro.v2 .busca-caja input::placeholder { color: #bdb6b0; }
.busca-caja kbd { font: 700 11px var(--f-ui); padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); color: inherit; opacity: 0.7; }
.p-intro.v2 .contador { text-align: left; color: #bdb6b0; }
.p-intro.v2 .contador b { color: #fff; }
.destacado-v { position: relative; display: block; border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; background: #140c12; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.destacado-v:hover { transform: translateY(-3px); box-shadow: 0 40px 80px -30px rgba(229, 72, 95, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.destacado-v .vid { aspect-ratio: 16 / 9; }
.destacado-v .chip { position: absolute; z-index: 3; left: 16px; top: 16px; }
.destacado-txt { padding: 18px 22px 22px; background: linear-gradient(180deg, #1a0f16, #120b10); }
.destacado-txt h2 { font-size: 34px; }
.destacado-txt h2 small { font: 700 12px var(--f-ui); letter-spacing: 0.08em; text-transform: uppercase; color: #c9b9b4; margin-left: 8px; }
.destacado-txt p { margin: 8px 0 14px; color: #d6ccc6; font-size: 15px; }
.destacado-txt .s-btn { padding: 13px 20px; font-size: 13px; }
.destacado-txt .s-btn.hueco { --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); }
.puertas-mini { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.puerta-mini { position: relative; height: 128px; border-radius: 18px; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; padding: 16px 20px; color: #fff; text-decoration: none; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 0.4s var(--ease); isolation: isolate; }
.puerta-mini:hover { transform: translateY(-3px); }
.puerta-mini .vid, .puerta-mini > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.puerta-mini::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15)); }
.puerta-mini.dr::before { background: linear-gradient(90deg, rgba(60, 0, 30, 0.85), rgba(255, 45, 138, 0.15)); }
.puerta-mini.pk::before { background: linear-gradient(90deg, rgba(12, 23, 54, 0.85), rgba(255, 203, 5, 0.1)); }
.puerta-mini span { font: 700 30px/1 var(--f-display); }
.puerta-mini small { display: block; font: 700 11px var(--f-ui); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.75; margin-bottom: 6px; }
.puerta-mini b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); transition: transform 0.3s var(--ease), background 0.3s; }
.puerta-mini:hover b { transform: translateX(3px); background: var(--acento); }
@media (max-width: 900px) {
	.p-intro.v2 { padding: 92px 0 24px; }
	.p-intro-rejilla { grid-template-columns: 1fr; gap: 18px; }
	.frase { font-size: 36px; }
	.p-intro.v2 .sub { font-size: 16px; margin: 10px 0 16px; }
	.destacado-txt h2 { font-size: 26px; }
	.destacado-txt p { display: none; }
	.puertas-mini { grid-template-columns: 1fr 1fr; }
	.puerta-mini { height: 96px; }
	.puerta-mini.guia { display: none; }
	.puerta-mini span { font-size: 22px; }
	.busca-caja kbd { display: none; }
}

/* cabeceras con vídeo */
.u-heroe.con-vid .velo { background: linear-gradient(90deg, rgba(11, 9, 13, 0.94) 0%, rgba(11, 9, 13, 0.75) 45%, rgba(11, 9, 13, 0.55)), linear-gradient(transparent 70%, var(--fondo)); transition: background 0.8s; }
body[data-modo="desesperacion"] .u-heroe.con-vid .velo { background: linear-gradient(90deg, rgba(16, 6, 8, 0.95), rgba(40, 6, 12, 0.7) 50%, rgba(16, 6, 8, 0.6)), linear-gradient(transparent 70%, var(--fondo)); }
.u-heroe.con-vid .fondo-vid video { filter: saturate(0.9); }
body[data-modo="desesperacion"] .u-heroe.con-vid .fondo-vid video { filter: grayscale(0.6) sepia(0.4) hue-rotate(-30deg) saturate(1.6); transition: filter 0.8s; }
.proy-heroe.con-vid { position: relative; overflow: hidden; }
.proy-heroe.con-vid .proy-fondo { display: none; }
.proy-heroe.con-vid .velo { background: linear-gradient(90deg, rgba(9, 8, 11, 0.9), rgba(9, 8, 11, 0.5)), linear-gradient(transparent 60%, #09080b); }
.u-heroe { min-height: auto !important; padding-bottom: 50px; }

/* galería de clips */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.clips figure { margin: 0; border-radius: 18px; overflow: hidden; background: var(--superficie); box-shadow: var(--sombra-suave), inset 0 0 0 1px var(--linea); }
.clips .vid { aspect-ratio: 16 / 9; }
.clips figcaption { padding: 12px 16px; font: 700 13px var(--f-ui); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tinta-2); }
@media (max-width: 900px) { .clips { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .clips { grid-template-columns: 1fr; } }

/* pasos con clip + una frase */
.pasos-video { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pasos-video li { border-radius: 18px; overflow: hidden; background: #161018; box-shadow: 0 20px 40px -26px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.pasos-video .vid { aspect-ratio: 16 / 9; }
.pasos-video p { margin: 0; padding: 14px 16px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #e9e2dc; }
.pasos-video p b:first-child { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--acento, #ff2d8a); color: #fff; font: 900 13px var(--f-ui, sans-serif); }
.pasos-video code { background: rgba(255, 255, 255, 0.1); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 900px) { .pasos-video { grid-template-columns: 1fr 1fr; } }
details.mas { margin-top: 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
details.mas > summary { cursor: pointer; padding: 16px 20px; font: 700 15px "Mplus", sans-serif; list-style: none; display: flex; justify-content: space-between; }
details.mas > summary::after { content: "+"; font-size: 20px; transition: transform 0.3s; }
details.mas[open] > summary::after { transform: rotate(45deg); }
details.mas > :not(summary) { padding: 0 20px 20px; }
details.guia-completa { width: min(1240px, 100% - 40px); margin: 0 auto 60px; }

/* buscador superpuesto */
.busqueda { position: fixed; inset: 0; z-index: 400; display: grid; place-items: start center; padding: 12vh 16px 0; background: rgba(8, 8, 10, 0.6); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0.25s; }
.busqueda.abierta { opacity: 1; visibility: visible; }
.busqueda-panel { width: min(680px, 100%); border-radius: 20px; background: #16191a; color: #ebe7e1; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.1); overflow: hidden; transform: translateY(-8px); transition: transform 0.3s var(--ease); font-family: "Segoe UI", system-ui, sans-serif; }
.busqueda.abierta .busqueda-panel { transform: none; }
.busqueda-campo { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 64px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.busqueda-campo input { flex: 1; height: 100%; border: 0; background: none; color: inherit; font-size: 18px; outline: none; }
.busqueda-campo kbd { font: 700 11px "Mplus", sans-serif; padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); }
.busqueda-lista { list-style: none; margin: 0; padding: 8px; max-height: 56vh; overflow: auto; }
.busqueda-lista .titulo-grupo { padding: 10px 12px 6px; font: 700 11px "Mplus", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #8f9592; }
.busqueda-lista a { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit; }
.busqueda-lista a[aria-selected="true"], .busqueda-lista a:hover { background: rgba(255, 255, 255, 0.07); }
.busqueda-lista img, .busqueda-lista .sin-img { width: 72px; height: 42px; border-radius: 8px; object-fit: cover; flex: none; background: #222; display: grid; place-items: center; }
.busqueda-lista b { display: block; font-size: 16px; }
.busqueda-lista small { color: #9aa09d; font-size: 13px; }
.busqueda-lista mark { background: rgba(229, 72, 95, 0.3); color: inherit; border-radius: 3px; padding: 0 1px; }
.busqueda-lista .estado-b { margin-left: auto; font: 700 11px "Mplus", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); white-space: nowrap; }
.busqueda-lista .nada { padding: 22px 14px; color: #a7aca8; }
.busqueda-lista .nada a { display: inline; padding: 0; color: #ff6f86; text-decoration: underline; }
.busqueda-pie { display: flex; gap: 16px; padding: 10px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 12px; color: #8f9592; }
.busca-res { display: none !important; }


/* ---------- escenas en pixel art (GIF animados integrados) ---------- */
.escena-pixel { position: relative; margin-top: 36px; aspect-ratio: 16 / 7; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra-alta), inset 0 0 0 1px var(--linea); isolation: isolate; image-rendering: pixelated; }
.escena-pixel .px { position: absolute; image-rendering: pixelated; width: auto; height: calc(var(--h, 96px) * var(--e, 2)); }
/* combate */
.combate .cielo { position: absolute; inset: 0; background: linear-gradient(#7ec8f8 0 18%, #a7dcfb 18% 36%, #d4efff 36% 52%, #bfe8a0 52%); }
.combate .hierba { position: absolute; inset: 52% 0 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0 8px, transparent 8px 16px), linear-gradient(#9fd67c, #78bf5a); }
.combate .nube { position: absolute; width: 120px; height: 24px; background: #fff; box-shadow: 24px -12px 0 #fff, 48px 0 0 #fff; opacity: 0.9; animation: nube 40s linear infinite; }
.combate .n1 { top: 10%; left: -10%; } .combate .n2 { top: 24%; left: 40%; animation-duration: 55s; animation-delay: -20s; }
@keyframes nube { to { transform: translateX(110vw); } }
.combate .plataforma { position: absolute; border-radius: 50%; background: radial-gradient(#d9ecaa, #a6cf6f 60%, #84b552); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12); }
.combate .plataforma.rival { width: 30%; height: 12%; right: 10%; top: 44%; }
.combate .plataforma.propia { width: 36%; height: 14%; left: 6%; bottom: 6%; }
.combate .px.rival { --h: 84px; right: 16%; top: 12%; }
.combate .px.propia { --h: 56px; left: 14%; bottom: 10%; transform: scaleX(-1); }
.combate .hud { position: absolute; width: 30%; padding: 10px 14px; border-radius: 12px 4px 12px 4px; background: #f8f4e0; color: #283028; font: 900 15px "Pixel", monospace; box-shadow: 4px 4px 0 #485848; }
.combate .hud small { float: right; font: inherit; }
.combate .hud i { display: block; height: 8px; margin-top: 8px; border-radius: 4px; background: linear-gradient(90deg, #48c050 var(--v), #d8d8c8 var(--v)); }
.combate .hud span { display: block; text-align: right; font-size: 13px; margin-top: 4px; }
.combate .hud.rival { left: 6%; top: 8%; } .combate .hud.propia { right: 6%; bottom: 30%; }
.combate .caja-texto { position: absolute; left: 3%; right: 3%; bottom: 4%; margin: 0; padding: 12px 18px; border-radius: 10px; background: #283848; color: #fff; font: 16px/1.4 "Pixel", monospace; box-shadow: inset 0 0 0 4px #e0c060, inset 0 0 0 7px #283848; display: none; }
@media (min-width: 901px) { .combate .caja-texto { display: block; width: 46%; left: auto; right: 3%; bottom: 4%; } .combate .hud.propia { bottom: 34%; } }
/* aula */
.aula .pared { position: absolute; inset: 0 0 34% 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0 2px, transparent 2px 48px), linear-gradient(#3b2a4a, #5a3d63); }
.aula .ventanas { position: absolute; top: 8%; right: 6%; display: flex; gap: 12px; }
.aula .ventanas i { width: 70px; height: 110px; background: linear-gradient(#ffb3d1, #ff5fa2); box-shadow: inset 0 0 0 6px #2a1d33, inset 0 0 0 9px #6e4d77; animation: luz 6s ease-in-out infinite alternate; }
@keyframes luz { to { filter: brightness(1.15) hue-rotate(-10deg); } }
.aula .pizarra { position: absolute; left: 8%; top: 10%; width: 42%; height: 36%; background: #1f3b2c; box-shadow: inset 0 0 0 8px #6b4a2b; display: grid; place-items: center; }
.aula .pizarra em { font: 900 clamp(14px, 1.8vw, 24px) "Pixel", monospace; font-style: normal; color: #f2f2e6; letter-spacing: 0.06em; animation: tiza 3s steps(1) infinite; }
@keyframes tiza { 50% { opacity: 0.85; } }
.aula .suelo { position: absolute; inset: 66% 0 0; background: repeating-conic-gradient(#8a5a3c 0 25%, #774c33 0 50%) 0 0 / 48px 48px; }
.aula .fila { position: absolute; left: 0; right: 0; bottom: 14%; display: flex; justify-content: center; align-items: flex-end; gap: 2%; }
.aula .fila .px { position: static; height: auto; width: calc(var(--w, 60px) * 2); image-rendering: pixelated; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.3)); }
.aula .fila .monokuma { width: 150px; }
@media (max-width: 700px) { .escena-pixel { aspect-ratio: 4 / 3; } .aula .fila .px { width: 13%; } .aula .fila .monokuma { width: 15%; } .aula .ventanas i { width: 40px; height: 64px; } .combate .hud { width: 44%; font-size: 12px; } }

.combate .px.rival { --h: 89px; } .combate .px.propia { --h: 63px; }
.aula .fila .px, .aula .fila .monokuma { width: auto; zoom: 2; }
@media (max-width: 700px) { .aula .fila .px, .aula .fila .monokuma { width: auto; zoom: 1; } .aula .fila .px:nth-child(n+6) { display: none; } .combate .px.rival { --e: 1; } .combate .px.propia { --e: 2; } }


.p-intro.v2 .s-btn.hueco, .destacado-txt .s-btn.hueco { --bg: transparent; --fg: #fff; }
.p-intro.v2 .s-btn.hueco:hover { color: #111; }
@media (max-width: 900px) { .hola-nombre { display: none; } .p-intro.v2 .contador { font-size: 12px; } }



/* ---------- botón de música ---------- */
.musica { position: fixed; right: 18px; bottom: 18px; z-index: 120; width: 136px; padding: 8px; border: 0; border-radius: 16px; background: #fff; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.musica:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--acento, #e5485f); }
.musica img { display: block; width: 120px; height: 60px; image-rendering: pixelated; border-radius: 10px; }
.musica .anima { display: none; }
.musica.sonando .anima { display: block; }
.musica.sonando .quieto { display: none; }
.musica .icono { position: absolute; left: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1b1b1f; color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.musica.sonando .icono { background: var(--acento, #e5485f); }
.musica.sonando .tacha { display: none; }
.musica::after { content: attr(title); position: absolute; right: 0; bottom: calc(100% + 8px); padding: 6px 10px; border-radius: 8px; background: #1b1b1f; color: #fff; font: 700 12px "Mplus", sans-serif; opacity: 0; transform: translateY(4px); transition: 0.2s var(--ease); pointer-events: none; }
.musica:hover::after, .musica:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 600px) { .musica { width: 96px; padding: 6px; right: 12px; bottom: 12px; } .musica img { width: 84px; height: 42px; } }


/* ---------- botón de música ---------- */
.musica { position: fixed; right: 18px; bottom: 18px; z-index: 120; width: 136px; padding: 8px; border: 0; border-radius: 16px; background: #fff; cursor: pointer; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.08); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.musica:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--acento, #e5485f); }
.musica img { display: block; width: 120px; height: 60px; image-rendering: pixelated; border-radius: 10px; }
.musica .anima { display: none; }
.musica.sonando .anima { display: block; }
.musica.sonando .quieto { display: none; }
.musica .icono { position: absolute; left: -8px; top: -8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #1b1b1f; color: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); }
.musica.sonando .icono { background: var(--acento, #e5485f); }
.musica.sonando .tacha { display: none; }
.musica::after { content: attr(title); position: absolute; right: 0; bottom: calc(100% + 8px); padding: 6px 10px; border-radius: 8px; background: #1b1b1f; color: #fff; font: 700 12px "Mplus", sans-serif; opacity: 0; transform: translateY(4px); transition: 0.2s var(--ease); pointer-events: none; }
.musica:hover::after, .musica:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 600px) { .musica { width: 96px; padding: 6px; right: 12px; bottom: 12px; } .musica img { width: 84px; height: 42px; } }


/* música desde YouTube */
.musica-caja { position: fixed; right: 18px; bottom: 18px; z-index: 120; }
.musica-caja .musica { position: relative; right: auto; bottom: auto; }
.musica::after { display: none; }
.musica-caja .credito { position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: 260px; padding: 8px 11px; border-radius: 10px; background: #1b1b1f; color: #fff; font: 700 12px/1.35 "Mplus", sans-serif; text-decoration: none; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.musica-caja:hover .credito, .musica-caja:focus-within .credito { opacity: 1; transform: none; pointer-events: auto; }
.musica-caja .credito:hover { text-decoration: underline; }
.yt-oculto { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .musica-caja { right: 12px; bottom: 12px; } }

/* ===================== ARTE HD (key art oficial a pantalla completa) ===================== */
.arte-rota, .arte-heroe { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0b090d; pointer-events: none; }
.arte-rota img, .arte-heroe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); }
/* rotación lenta con fundido: 4 imágenes, 7 s cada una */
.arte-rota img { opacity: 0; animation: arte-rota 28s linear infinite; }
.arte-rota img:nth-child(1) { animation-delay: -1.5s; }
.arte-rota img:nth-child(2) { animation-delay: 5.5s; }
.arte-rota img:nth-child(3) { animation-delay: 12.5s; }
.arte-rota img:nth-child(4) { animation-delay: 19.5s; }
@keyframes arte-rota { 0% { opacity: 0; transform: scale(1.06); } 5% { opacity: 1; } 25% { opacity: 1; } 30% { opacity: 0; } 100% { opacity: 0; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .arte-rota img { animation: none; } .arte-rota img:first-child { opacity: 1; } }
.p-intro.v2 .velo { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 8, 12, 0.88) 0%, rgba(10, 8, 12, 0.55) 45%, rgba(10, 8, 12, 0.15) 100%), linear-gradient(transparent 60%, #0d0a0f); }
.p-intro.v2 { display: grid; align-content: center; }
.destacado-v .destacado-arte { display: block; width: 100%; aspect-ratio: 1920 / 620; object-fit: cover; object-position: 50% 30%; }

/* cabeceras de universo y de ficha */
.u-heroe:has(> .arte-heroe), .p-heroe:has(.arte-heroe) { position: relative; isolation: isolate; }
.u-heroe:has(> .arte-heroe) { min-height: 100svh !important; display: grid; align-content: center; }
.u-heroe:has(> .arte-heroe) > *:not(.arte-heroe):not(.velo) { position: relative; z-index: 2; }
.u-heroe:has(> .arte-heroe) .velo { position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(11, 9, 13, 0.9) 0%, rgba(11, 9, 13, 0.55) 45%, rgba(11, 9, 13, 0.1) 100%), linear-gradient(transparent 70%, var(--fondo)); transition: background 0.9s ease; }
.u-heroe:has(> .arte-heroe.pk) .velo { background: linear-gradient(90deg, rgba(12, 23, 54, 0.9) 0%, rgba(12, 23, 54, 0.55) 42%, rgba(12, 23, 54, 0) 75%), linear-gradient(transparent 72%, var(--fondo)); }
.u-heroe:has(> .arte-heroe) .dos-caras, .u-heroe:has(> .arte-heroe) .marco-u, .u-heroe:has(> .arte-heroe) .sangre { display: none; }
.u-heroe:has(> .arte-heroe) .envol { grid-template-columns: minmax(0, 1fr) !important; }
.u-heroe:has(> .arte-heroe) .envol > div:first-child { max-width: 640px; }
/* Esperanza / Desesperación: fundido suave entre dos key arts */
.arte-heroe .a-des { opacity: 0; transition: opacity 1.2s ease, filter 1.2s ease; }
.arte-heroe .a-esp { transition: opacity 1.2s ease; }
body[data-modo="desesperacion"] .arte-heroe .a-des { opacity: 1; }
body[data-modo="desesperacion"] .arte-heroe .a-esp { opacity: 0; }
body[data-modo="desesperacion"] .u-heroe:has(> .arte-heroe) .velo { background: linear-gradient(90deg, rgba(20, 4, 8, 0.92) 0%, rgba(50, 4, 14, 0.55) 45%, rgba(40, 0, 10, 0.15) 100%), linear-gradient(transparent 70%, var(--fondo)); }
.p-heroe .arte-heroe { z-index: 0; }

/* universos: un bloque grande por fila, a todo el ancho */
#universos .carrusel-pista[data-auto] { display: grid; gap: 22px; overflow: visible; padding: 0 var(--margen); cursor: auto; }
#universos .carrusel-mandos { display: none; }
#universos .mundo-slide { min-height: clamp(520px, 82vh, 820px); width: 100%; display: flex; align-items: flex-end; }
#universos .mundo-slide .fondo { background: #0b090d; }
#universos .mundo-slide .fondo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 1; mix-blend-mode: normal; mask: none; -webkit-mask: none; transition: transform 1.2s var(--ease); }
#universos .mundo-slide:hover .fondo img { transform: scale(1.03); }
#universos .mundo-slide .fondo::after { content: ""; position: absolute; inset: 0; height: auto; background: linear-gradient(90deg, rgba(8, 6, 10, 0.85), rgba(8, 6, 10, 0.35) 50%, transparent 75%), linear-gradient(transparent 50%, rgba(8, 6, 10, 0.7)); }
#universos .mundo-slide.pk .fondo::after { background: linear-gradient(90deg, rgba(12, 23, 54, 0.88), rgba(12, 23, 54, 0.35) 50%, transparent 75%), linear-gradient(transparent 50%, rgba(12, 23, 54, 0.7)); }
#universos .mundo-slide .texto::before { display: none; }
@media (max-width: 700px) {
	.arte-rota img, .arte-heroe img { object-position: var(--pos-m, var(--pos, 50% 50%)); }
	.p-intro.v2 .velo, .u-heroe:has(> .arte-heroe) .velo, .u-heroe:has(> .arte-heroe.pk) .velo { background: linear-gradient(rgba(10, 8, 12, 0.35), rgba(10, 8, 12, 0.6) 40%, rgba(10, 8, 12, 0.92)); }
	#universos .mundo-slide { min-height: 78svh; }
	#universos .mundo-slide .fondo::after { background: linear-gradient(transparent 25%, rgba(8, 6, 10, 0.92) 75%); }
}
@media (max-width: 700px) { #universos .mundo-slide h3 { font-size: clamp(38px, 11.5vw, 64px); overflow-wrap: anywhere; } }
