/* ==========================================================================
   ANOMALIA STUDIOS — sistema visual "noche de fantasía"
   Paleta tomada del personaje oficial: azul marino del cuerpo, azul eléctrico
   y celeste de los ojos, brillos blancos. Formas redondeadas, nubes y destellos.
   ========================================================================== */

:root {
	--night: #121633;        /* fondo principal */
	--night-deep: #0C0F27;   /* pie */
	--navy: #252A45;         /* cuerpo del personaje */
	--card: #1C2248;         /* tarjetas */
	--card-2: #262E5C;       /* tarjetas hover / brillo del cuerpo */
	--line: rgba(159, 224, 255, .14);
	--line-strong: rgba(159, 224, 255, .3);
	--accent: #2AA4F5;       /* ojos — se reemplaza desde Anomalia → Marca */
	--deep: #1D5FE0;         /* azul profundo para degradados */
	--sky: #9FE0FF;          /* reflejo de los ojos */
	--white: #F4F8FF;
	--muted: #A9B5DC;
	--dawn: #EAF2FF;         /* bloques claros */
	--ink: #1B2142;          /* texto sobre claro */

	--grad: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 45%, var(--deep)) 100%);
	--grad-text: linear-gradient(100deg, var(--sky) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #8E7CFF) 100%);
	--glow: 0 12px 40px -10px color-mix(in srgb, var(--accent) 70%, transparent);

	--font-display: "Fredoka", "Nunito", system-ui, sans-serif;
	--font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

	--container: 1240px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--header-h: 104px;
	--r-sm: 14px;
	--r: 28px;
	--r-lg: 40px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--bounce: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
	margin: 0;
	background: var(--night);
	color: var(--white);
	font: 500 17px/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.08; }
p { margin: 0; }

::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 10px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto;
	padding: .8rem 1.2rem; border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 800;
}

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container-narrow { --container: 760px; }

/* Ritmo vertical: el mismo aire entre el contenido y el borde (u onda) de cada sección. */
:root { --section-y: clamp(4.5rem, 9vw, 7.5rem); --wave-h: clamp(40px, 6vw, 80px); }
.section { position: relative; padding: var(--section-y) 0; }
.section-tight { padding-top: 0; }

/* ---------- Tipografía ---------- */

.display {
	font-family: var(--font-display);
	font-weight: 700;
	letter-spacing: -.01em;
	line-height: 1.02;
	font-size: clamp(2.3rem, 5vw, 4.2rem);
	text-wrap: balance;
}
.lead { font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.55; font-weight: 600; }
.muted { color: var(--muted); }
.meta { font: 700 .8rem/1.4 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.meta-sep { margin: 0 .45em; opacity: .5; }
.nowrap { white-space: nowrap; }

/* Palabra destacada: degradado de los ojos + leve inclinación juguetona */
.anomaly {
	display: inline-block;
	background: var(--grad-text);
	-webkit-background-clip: text; background-clip: text;
	color: transparent;
	transform: rotate(-3deg) translateY(.04em);
	padding: 0 .04em .08em;
	transition: transform .5s var(--bounce);
}
.anomaly:hover { transform: rotate(2deg) translateY(-.06em) scale(1.04); }

/* Píldoras */
.pill, .label {
	display: inline-flex; align-items: center; gap: .55rem;
	padding: .45rem 1rem .45rem .6rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 14%, transparent);
	border: 1px solid color-mix(in srgb, var(--sky) 30%, transparent);
	font: 800 .78rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	color: var(--sky);
	margin-bottom: 1.4rem;
}
.label { padding-left: .4rem; }
.label-num {
	display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 .4rem; border-radius: 999px;
	background: var(--grad); color: #fff; font-size: .72rem; letter-spacing: 0;
}
.label-line { display: none; }
.pill-sparkle { width: 14px; height: 14px; fill: var(--sky); animation: twinkle 2.4s ease-in-out infinite; }
.pill-dark { background: rgba(37, 42, 69, .08); border-color: rgba(37, 42, 69, .16); color: var(--navy); }
.pill-dark .pill-sparkle { fill: var(--accent); }

.section-head {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem 4rem; align-items: end;
	margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.section-head-side { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; max-width: 46ch; }

/* Destellos */
.sparkle { fill: var(--white); }
@keyframes twinkle {
	0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
	50% { transform: scale(.55) rotate(45deg); opacity: .55; }
}

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

.btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
	min-height: 56px; padding: 0 1.2rem 0 1.7rem;
	border-radius: 999px; border: 2px solid transparent;
	font: 800 1rem/1 var(--font-body);
	cursor: pointer;
	transition: transform .35s var(--bounce), box-shadow .3s, background .3s, color .3s, border-color .3s;
}
.btn .icon {
	width: 32px; height: 32px; padding: 7px; border-radius: 50%;
	background: rgba(255, 255, 255, .2);
	transition: transform .35s var(--bounce);
}
.btn:hover { transform: translateY(-3px) scale(1.03); }
.btn:hover .icon { transform: translateX(3px) rotate(-8deg); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { box-shadow: 0 16px 48px -8px color-mix(in srgb, var(--accent) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost, .btn-outline { border-color: rgba(244, 248, 255, .3); color: var(--white); background: rgba(244, 248, 255, .04); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--white); background: rgba(244, 248, 255, .1); }
.btn-ghost .icon, .btn-outline .icon { background: rgba(244, 248, 255, .12); }
.btn-light { background: var(--white); color: var(--ink); box-shadow: 0 12px 30px -10px rgba(12, 15, 39, .6); }
.btn-light .icon { background: var(--grad); color: #fff; }
.btn-sm { min-height: 46px; padding: 0 .9rem 0 1.3rem; font-size: .92rem; }
.btn-sm .icon { width: 28px; height: 28px; padding: 6px; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; }

.link-arrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font: 800 .95rem/1 var(--font-body); color: var(--sky);
	padding-bottom: .3rem;
	background: linear-gradient(var(--sky), var(--sky)) 0 100% / 0 2px no-repeat;
	transition: background-size .35s var(--ease);
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .35s var(--bounce); }
.link-arrow:hover { background-size: 100% 2px; }
.link-arrow:hover .icon { transform: translateX(4px); }
.icon.flip { transform: scaleX(-1); }
.link-arrow:hover .icon.flip { transform: scaleX(-1) translateX(4px); }

.icon .px { fill: var(--sky); stroke: none; }

/* ---------- Cabecera: cápsula flotante ---------- */

.site-header {
	position: fixed; top: 16px; left: 0; right: 0; z-index: 60;
	transition: transform .45s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 24px)); }
.header-inner {
	position: relative; isolation: isolate;
	height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	padding: 0 .55rem 0 1.3rem;
	border-radius: 999px;
}
/* El vidrio va en una capa aparte: un backdrop-filter en .header-inner encerraría dentro de la cápsula
   al menú del celular (position: fixed), que tiene que ocupar toda la pantalla. */
.header-inner::before {
	content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
	background: rgba(28, 34, 72, .55);
	border: 1px solid var(--line);
	backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
	box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .7);
	transition: background .3s;
}
.site-header.is-scrolled .header-inner::before { background: rgba(22, 27, 60, .86); }
.site-logo { flex-shrink: 0; position: relative; z-index: 2; display: flex; align-items: center; } /* Logo fijo: sin animación. */
.site-logo-img { height: 54px; width: auto; } /* Logo-15: unos 230 px de ancho */

.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav .menu a {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .65rem 1rem; border-radius: 999px;
	font: 800 .95rem/1 var(--font-body); color: var(--white);
	transition: background .25s, color .25s;
}
.site-nav .menu-num { display: none; }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { background: rgba(159, 224, 255, .12); }
.site-nav .menu li:last-child a { background: var(--grad); color: #fff; padding-inline: 1.3rem; box-shadow: var(--glow); margin-left: .4rem; }
.site-nav .menu li:last-child a:hover { filter: brightness(1.08); }
.site-nav-foot { display: none; }
.site-nav { margin-left: auto; }

/* Selector de idioma */
.header-actions { position: relative; z-index: 2; display: flex; align-items: center; gap: .6rem; }
.lang-switch ul { list-style: none; margin: 0; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: rgba(12, 15, 39, .55); border: 1px solid var(--line); }
.lang-switch a {
	display: grid; place-items: center; min-width: 40px; height: 34px; padding: 0 .6rem; border-radius: 999px;
	font: 800 .78rem/1 var(--font-body); letter-spacing: .06em; color: var(--muted);
	transition: background .25s, color .25s;
}
.lang-switch a:hover { color: var(--white); background: rgba(159, 224, 255, .1); }
.lang-switch a.is-current { background: var(--white); color: var(--ink); }

.nav-toggle {
	display: none; position: relative; z-index: 2;
	align-items: center; gap: .7rem; padding: .7rem 1.1rem; border-radius: 999px;
	background: var(--grad); border: 0; color: #fff; cursor: pointer;
	font: 800 .9rem/1 var(--font-body);
}
.nav-toggle-icon { position: relative; width: 20px; height: 12px; }
.nav-toggle-icon span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .35s var(--bounce), top .35s var(--ease); }
.nav-toggle-icon span:first-child { top: 0; }
.nav-toggle-icon span:last-child { top: 9px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
	position: relative; overflow: hidden;
	min-height: min(100svh, 940px);
	display: flex; flex-direction: column; justify-content: center;
	padding: calc(var(--header-h) + 3rem) 0 7rem;
	background:
		radial-gradient(ellipse 80% 60% at 75% 45%, rgba(42, 164, 245, .16), transparent 70%),
		linear-gradient(180deg, #0B0E26 0%, var(--night) 100%);
}
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.hero-glow-a { width: 460px; height: 460px; right: 6%; top: 18%; background: color-mix(in srgb, var(--accent) 45%, transparent); opacity: .45; }
.hero-glow-b { width: 380px; height: 380px; left: -8%; bottom: -10%; background: #3A3FB8; opacity: .35; }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; }
.hero-title {
	font-family: var(--font-display); font-weight: 700;
	font-size: clamp(2.6rem, 5.8vw, 5.4rem); line-height: 1; letter-spacing: -.015em;
	margin-bottom: 1.5rem;
	text-shadow: 0 6px 30px rgba(12, 15, 39, .5);
}
.hero-title .anomaly { text-shadow: none; filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--accent) 55%, transparent)); }
.hero-text { font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 38ch; margin-bottom: 2.2rem; font-weight: 600; }

/* El personaje en su escenario de fantasía */
.hero-visual { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; display: grid; place-items: center; }
.halo {
	position: absolute; inset: 12%; border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--accent) 38%, transparent) 0%, color-mix(in srgb, var(--accent) 10%, transparent) 45%, transparent 70%);
	animation: breathe 6s ease-in-out infinite;
}
.orbit { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(159, 224, 255, .28); }
.orbit-a { transform: rotateX(70deg) rotate(0); animation: orbit 18s linear infinite; }
.orbit-b { inset: 16%; border-style: solid; border-color: rgba(159, 224, 255, .14); transform: rotateX(66deg) rotateY(-18deg); animation: orbit-b 26s linear infinite reverse; }
.orbit-dot { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 16px var(--sky); }
@keyframes orbit { to { transform: rotateX(70deg) rotate(360deg); } }
@keyframes orbit-b { to { transform: rotateX(66deg) rotateY(-18deg) rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .8; } }

.hero-mascot { position: relative; z-index: 2; width: 62%; animation: float 6s ease-in-out infinite; }
.hero-mascot-img { width: 100%; filter: drop-shadow(0 24px 40px rgba(8, 10, 30, .55)) drop-shadow(0 0 30px color-mix(in srgb, var(--accent) 35%, transparent)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-20px) rotate(-2deg); } }

.cloud {
	position: absolute; z-index: 3; height: 44px; border-radius: 999px;
	background: linear-gradient(180deg, #F4F8FF 0%, #CFDDFB 100%);
	box-shadow: 0 14px 30px -12px rgba(8, 10, 30, .6);
	animation: drift 9s ease-in-out infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #F4F8FF; }
.cloud-a { width: 170px; left: 4%; bottom: 14%; }
.cloud-a::before { width: 74px; height: 74px; left: 26px; top: -38px; }
.cloud-a::after { width: 54px; height: 54px; left: 84px; top: -24px; }
.cloud-b { width: 130px; right: 2%; bottom: 24%; height: 36px; opacity: .92; animation-delay: -3s; animation-duration: 11s; }
.cloud-b::before { width: 56px; height: 56px; left: 22px; top: -28px; }
.cloud-b::after { width: 40px; height: 40px; left: 66px; top: -16px; }
.cloud-c { width: 90px; height: 26px; left: 18%; top: 14%; opacity: .55; animation-delay: -6s; z-index: 1; }
.cloud-c::before { width: 38px; height: 38px; left: 16px; top: -20px; }
.cloud-c::after { width: 28px; height: 28px; left: 46px; top: -12px; }
@keyframes drift { 50% { transform: translateX(14px); } }

.hero-visual .s { position: absolute; z-index: 3; animation: twinkle 2.8s ease-in-out infinite; }
.s1 { width: 30px; top: 10%; right: 18%; fill: var(--sky); }
.s2 { width: 18px; top: 30%; left: 8%; animation-delay: -.8s !important; }
.s3 { width: 22px; bottom: 34%; right: 6%; fill: var(--accent); animation-delay: -1.6s !important; }
.s4 { width: 14px; top: 6%; left: 34%; animation-delay: -2.2s !important; }
.s5 { width: 12px; bottom: 10%; left: 46%; fill: var(--sky); animation-delay: -1.1s !important; }

.scroll-cue {
	position: absolute; z-index: 4; left: 50%; bottom: 5.4rem; transform: translateX(-50%);
	width: 28px; height: 44px; border-radius: 999px; border: 2px solid rgba(244, 248, 255, .4);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 6px; height: 8px; margin-left: -3px; border-radius: 4px; background: var(--white); animation: scroll 1.8s ease-in-out infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Ondas entre secciones */
.wave { position: absolute; left: 0; width: 100%; height: clamp(40px, 6vw, 80px); pointer-events: none; }
.wave path { fill: currentColor; }
.wave-hero { bottom: -1px; color: var(--night); z-index: 3; }

/* Cinta de frases */
.ribbon {
	position: relative; z-index: 5;
	margin: -2.2rem -2% 0; padding: 1.05rem 0;
	background: var(--grad);
	transform: rotate(-2deg);
	box-shadow: 0 18px 50px -20px color-mix(in srgb, var(--accent) 80%, transparent);
	overflow: hidden;
}
.ribbon-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-group { display: flex; align-items: center; }
.ribbon-item { font: 700 clamp(1.2rem, 2.2vw, 1.8rem)/1 var(--font-display); white-space: nowrap; padding: 0 1.6rem; color: #fff; }
.ribbon-sparkle { width: 22px; flex-shrink: 0; fill: #fff; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */

.about { padding-top: clamp(6rem, 12vw, 9rem); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem clamp(2rem, 6vw, 6rem); align-items: end; }
.about-title { font-size: clamp(2.6rem, 6vw, 5rem); }
.about-copy { display: flex; flex-direction: column; gap: 1.2rem; }

.values { margin-top: clamp(4rem, 8vw, 6rem); }
.values-title { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 2rem; text-align: center; }
.title-sparkle { width: 24px; fill: var(--accent); animation: twinkle 2.6s ease-in-out infinite; }
.values-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; }
.value {
	position: relative; flex: 1 1 calc(25% - 1.1rem); max-width: calc(25% - .83rem); min-width: 220px;
	display: flex; flex-direction: column; gap: .5rem;
	padding: 1.6rem 1.5rem 1.7rem;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
	transition: transform .45s var(--bounce), background .3s, box-shadow .3s, border-color .3s;
}
.value:hover { transform: translateY(-8px) rotate(-1.2deg); background: var(--card-2); border-color: var(--line-strong); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); }
.value:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg); }
.value-letter {
	display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: .6rem;
	background: var(--grad); color: #fff; font: 700 1.9rem/1 var(--font-display); box-shadow: var(--glow);
	transform: rotate(-6deg);
	transition: transform .5s var(--bounce);
}
.value:nth-child(even) .value-letter { transform: rotate(6deg); }
.value:hover .value-letter { transform: rotate(0) scale(1.1); }

/* Acróstico ANOMALIA: la letra de la tarjeta bajo el mouse se ilumina */
.acrostic {
	display: flex; justify-content: center; gap: clamp(.2rem, 1.2vw, .9rem);
	margin: -.6rem 0 2.2rem;
	font: 700 clamp(2.6rem, 8vw, 6.4rem)/1 var(--font-display);
	user-select: none;
}
.acrostic span {
	display: inline-block; color: rgba(159, 224, 255, .16);
	transition: color .35s, transform .5s var(--bounce), text-shadow .35s;
}
.acrostic span:nth-child(odd) { transform: translateY(-.06em) rotate(-3deg); }
.acrostic span:nth-child(even) { transform: translateY(.06em) rotate(3deg); }
/* Al entrar en pantalla las letras se encienden de a una (main.js) */
.acrostic span.is-on { color: rgba(159, 224, 255, .4); text-shadow: 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.acrostic-tap span { cursor: pointer; }
.values:has(.value:nth-child(1):hover) .acrostic span:nth-child(1),
.values:has(.value:nth-child(2):hover) .acrostic span:nth-child(2),
.values:has(.value:nth-child(3):hover) .acrostic span:nth-child(3),
.values:has(.value:nth-child(4):hover) .acrostic span:nth-child(4),
.values:has(.value:nth-child(5):hover) .acrostic span:nth-child(5),
.values:has(.value:nth-child(6):hover) .acrostic span:nth-child(6),
.values:has(.value:nth-child(7):hover) .acrostic span:nth-child(7),
.values:has(.value:nth-child(8):hover) .acrostic span:nth-child(8),
.acrostic span.is-active {
	color: var(--white); text-shadow: 0 0 30px color-mix(in srgb, var(--accent) 80%, transparent);
	transform: translateY(-.12em) scale(1.12) rotate(0);
}
.value-title { font: 600 1.3rem/1.15 var(--font-display); }
.value-text { color: color-mix(in srgb, var(--muted) 55%, var(--white)); font-size: 1rem; line-height: 1.5; }

/* Manifiesto: bloque claro "amanecer" */
.manifesto { position: relative; background: var(--dawn); color: var(--ink); padding: var(--section-y) 0 calc(var(--section-y) + var(--wave-h)); margin-top: var(--wave-h); }
.manifesto .wave-top { top: calc(-1 * clamp(40px, 6vw, 80px) + 1px); color: var(--dawn); }
.manifesto .wave-bottom { bottom: -1px; color: var(--night); }
.manifesto-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 3rem; align-items: center; }
.manifesto-mascot { position: relative; width: clamp(130px, 16vw, 210px); margin-top: 1rem; }
.manifesto-iso { width: 100%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 18px 24px rgba(37, 42, 69, .25)); }
.manifesto.has-art .manifesto-grid { grid-template-columns: 1.15fr 1.6fr; }
.manifesto-art { margin-top: 1.2rem; margin-left: -4%; }
/* Escena animada del manifiesto (posiciones sobre una caja de 1200x700) */
.manifesto-scene { position: relative; width: 100%; aspect-ratio: 1200 / 700; }
.mscene-item, .mscene-hero { position: absolute; display: block; }
.mscene-item { height: auto; }
.mscene-platforms { left: 52%; top: 18%; width: 46%; z-index: 0; animation: mscene-drift 7s ease-in-out infinite; }
.mscene-rock { left: 0; top: 47.9%; width: 50%; z-index: 1; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.mscene-hero { left: 15%; top: 1%; width: 30%; z-index: 2; }
.manifesto-hero-img { display: block; width: 100%; height: auto; transform-origin: 50% 100%; animation: mscene-step 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(37, 42, 69, .25)); }
.mscene-crystals { left: 40%; top: 38%; width: 14%; z-index: 3; animation: mscene-shine 3.6s ease-in-out infinite; }
@keyframes mscene-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -12px); } }
@keyframes mscene-step { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-7px) rotate(-2deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-7px) rotate(2deg); } }
@keyframes mscene-shine {
	0%, 100% { opacity: .85; transform: translate(0, 0) rotate(0); filter: drop-shadow(0 0 4px rgba(127, 220, 255, .4)); }
	50% { opacity: 1; transform: translate(6px, -6px) rotate(3deg); filter: drop-shadow(0 0 14px rgba(127, 220, 255, .9)); }
}
.ms { position: absolute; fill: var(--accent); animation: twinkle 2.6s ease-in-out infinite; }
.ms1 { width: 26px; top: -6%; right: -12%; }
.ms2 { width: 16px; bottom: 18%; left: -14%; fill: var(--navy); animation-delay: -1.2s; }
/* Frases del manifiesto: grandes, tipo titular, una por renglón y con su palabra destacada */
.manifesto-line {
	margin: 0; padding: .5rem 0;
	font: 700 clamp(1.45rem, 2.7vw, 2.35rem)/1.15 var(--font-display); letter-spacing: -.01em;
	text-wrap: balance;
}
.manifesto-closing { margin-top: 2rem; }
.manifesto-closing span {
	display: inline-block; padding: .7rem 1.6rem .8rem; border-radius: 999px;
	background: var(--grad); color: #fff; box-shadow: var(--glow);
	font: 700 clamp(1.2rem, 2.1vw, 1.75rem)/1.15 var(--font-display);
	transform: rotate(-1.5deg);
}

/* ---------- Fondo ilustrado (cuando no hay imagen) ---------- */

.pattern {
	position: absolute; inset: 0;
	background:
		radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 85% 65%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 35% 80%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 55% 50%, #fff 50%, transparent 51%),
		radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 55%),
		radial-gradient(circle at 80% 85%, rgba(159, 224, 255, .25), transparent 50%),
		linear-gradient(160deg, #222A5C, #141936);
}
.pattern::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
	background: var(--white);
	clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
	filter: drop-shadow(0 0 10px var(--sky));
	animation: twinkle 3s ease-in-out infinite;
}

/* ---------- Juegos ---------- */

.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.game-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
	transition: transform .45s var(--bounce), box-shadow .35s, border-color .35s;
}
.game-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), var(--glow); }
.game-card-link { display: flex; flex-direction: column; height: 100%; padding: .7rem; }
.game-card-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--r) - .6rem); background: var(--navy); }
.game-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.game-card:hover .game-card-cover img { transform: scale(1.06); }
.game-card-cover .badge { position: absolute; top: .9rem; left: .9rem; }
.game-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.1rem .8rem .9rem; flex: 1; }
.game-card-title { font: 600 1.45rem/1.12 var(--font-display); }
.game-card-text { color: var(--muted); font-size: .95rem; }
.game-card-body .link-arrow { margin-top: auto; padding-top: .9rem; align-self: flex-start; }

.badge {
	display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .8rem; border-radius: 999px;
	font: 800 .72rem/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
	background: rgba(18, 22, 51, .8); color: var(--white); backdrop-filter: blur(6px);
	border: 1px solid var(--line-strong);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 8px var(--sky); }
.badge-in-development::before { animation: pulse-dot 1.6s ease-in-out infinite; }
.badge-coming-soon { background: var(--white); color: var(--ink); border-color: transparent; }
.badge-coming-soon::before { background: var(--accent); box-shadow: none; }
.badge-released { background: var(--grad); color: #fff; border-color: transparent; }
.badge-released::before { background: #fff; }
@keyframes pulse-dot { 50% { transform: scale(.6); opacity: .5; } }

/* Estado vacío */
.games-empty { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.games-empty-main {
	grid-column: 1 / -1; position: relative; overflow: hidden;
	display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
	padding: clamp(1.8rem, 4vw, 3rem) clamp(1.8rem, 5vw, 3.5rem);
	border-radius: var(--r-lg);
	background:
		radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 40%),
		linear-gradient(135deg, var(--card-2), var(--card));
	border: 1px solid var(--line);
}
.games-empty-main > div { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; max-width: 56ch; }
.games-empty-main .pill { margin-bottom: 0; }
/* Escena animada del aviso "En desarrollo" (posiciones sobre una caja de 1100x860) */
.games-scene { position: relative; width: clamp(250px, 31vw, 400px); aspect-ratio: 1100 / 860; }
.scene-item, .scene-hero { position: absolute; display: block; }
.scene-item { height: auto; animation: scene-bob var(--t, 6s) ease-in-out var(--d, 0s) infinite; filter: drop-shadow(0 10px 14px rgba(8, 10, 30, .35)); }
.scene-hero { left: 24.5%; top: 23%; width: 53.6%; z-index: 2; }
.games-empty-iso {
	display: block; width: 100%; height: auto; animation: float 6s ease-in-out infinite;
	filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 35%, transparent)) drop-shadow(0 16px 26px rgba(8, 10, 30, .5));
}
.scene-cube-1 { left: 25%; top: 12.5%; width: 10.4%; --t: 7s; --d: -1s; --dy: -12px; --r1: 16deg; }
.scene-cube-2 { left: 47.5%; top: 1%; width: 8%; --t: 6s; --d: -3s; --dy: -10px; --r1: -14deg; }
.scene-cube-3 { left: 69%; top: 5%; width: 14%; --t: 8s; --d: -5s; --dy: -14px; --r1: 12deg; }
.scene-galaxia { left: 2%; top: 35%; width: 24.8%; animation: scene-swirl 9s ease-in-out infinite; }
.scene-moon { left: 82.5%; top: 42%; width: 9%; animation: scene-orbit 12s linear infinite; }
.scene-island-1 { left: 0; top: 70%; width: 24.5%; z-index: 3; --t: 6.5s; --d: -2s; --dy: -9px; --r1: -2deg; }
.scene-island-2 { left: 78.5%; top: 73%; width: 20.5%; z-index: 3; --t: 7.5s; --d: -4.5s; --dy: -11px; --r1: 2deg; }
@keyframes scene-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(var(--dy, -10px)) rotate(var(--r1, 0deg)); } }
@keyframes scene-swirl { 0%, 100% { transform: rotate(-5deg) scale(1); } 50% { transform: rotate(5deg) scale(1.06); } }
@keyframes scene-orbit { from { transform: rotate(0) translateX(8px) rotate(0); } to { transform: rotate(360deg) translateX(8px) rotate(-360deg); } }
.games-empty-title { font: 700 clamp(1.7rem, 3.2vw, 2.6rem)/1.05 var(--font-display); }
.slot {
	display: flex; flex-direction: column; gap: .2rem; padding: .7rem;
	border-radius: var(--r); border: 2px dashed var(--line-strong);
	background: rgba(28, 34, 72, .4);
	transition: transform .45s var(--bounce), border-color .3s;
}
.slot:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--sky); }
.slot-art {
	position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
	border-radius: calc(var(--r) - .6rem);
	background:
		radial-gradient(1.5px 1.5px at 18% 28%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 72% 22%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 84% 70%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 30% 78%, #fff 50%, transparent 51%),
		radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 55%),
		linear-gradient(160deg, #1E2552, #121633);
}
.slot-q {
	font: 700 clamp(4rem, 7vw, 5.5rem)/1 var(--font-display);
	background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: float 5s ease-in-out infinite;
}
.slot:nth-child(3) .slot-q { animation-delay: -1.6s; }
.slot:nth-child(4) .slot-q { animation-delay: -3.2s; }
.slot-sparkle { position: absolute; width: 22px; top: 18%; right: 22%; fill: var(--sky); animation: twinkle 2.4s ease-in-out infinite; }
.slot-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem .6rem .5rem; }
.slot-title { font: 600 1.2rem/1 var(--font-display); }
.slot-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(159, 224, 255, .12); overflow: hidden; }
.slot-bar span {
	position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 999px; background: var(--grad);
	animation: loading 2.4s ease-in-out infinite;
}
.slot:nth-child(3) .slot-bar span { animation-delay: -.8s; }
.slot:nth-child(4) .slot-bar span { animation-delay: -1.6s; }
@keyframes loading { 0% { left: -40%; } 100% { left: 100%; } }

/* ---------- Approach ---------- */

.areas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }
.area {
	position: relative; overflow: hidden;
	display: flex; flex-direction: column; gap: .7rem;
	padding: clamp(1.7rem, 3vw, 2.2rem);
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
	transition: transform .45s var(--bounce), background .3s, border-color .3s, box-shadow .3s;
}
.area:hover { transform: translateY(-8px); background: var(--card-2); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.area-icon-wrap {
	display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 1rem;
	border-radius: 22px; background: var(--grad); color: #fff; box-shadow: var(--glow);
	transform: rotate(-6deg);
	transition: transform .5s var(--bounce);
}
.area:hover .area-icon-wrap { transform: rotate(6deg) scale(1.08); }
.area-icon { width: 34px; height: 34px; }
.area-icon .px { fill: #fff; }
.area-title { font: 600 1.35rem/1.15 var(--font-display); }
.area-text { color: var(--muted); font-size: .96rem; }
.area-num {
	position: absolute; right: 1.2rem; top: .6rem;
	font: 700 3.6rem/1 var(--font-display); color: rgba(159, 224, 255, .07);
}

/* Camino de creación */
.journey { margin-top: clamp(5rem, 9vw, 7rem); }
.journey-title { text-align: center; font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: 3.5rem; }
.journey-track { position: relative; height: 340px; }
.journey-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.journey-path path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.journey-glow { stroke: color-mix(in srgb, var(--accent) 30%, transparent); stroke-width: 22; filter: blur(4px); }
.journey-line { stroke: var(--sky); stroke-width: 3; stroke-dasharray: 2 12; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.journey-steps { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); }
.step { --y: 30%; position: relative; }
.step:nth-child(even) { --y: 70%; }
.step-bubble {
	position: absolute; left: 50%; top: var(--y); transform: translate(-50%, -50%);
	display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
	background: var(--grad); color: #fff; font: 700 1.5rem var(--font-display);
	box-shadow: 0 0 0 6px var(--night), 0 0 0 8px var(--line-strong), var(--glow);
	transition: transform .45s var(--bounce);
}
.step:hover .step-bubble { transform: translate(-50%, -50%) scale(1.15) rotate(-8deg); }
.step-card {
	position: absolute; left: 50%; transform: translateX(-50%);
	width: min(100%, 200px); text-align: center;
	display: flex; flex-direction: column; gap: .25rem;
	bottom: calc(100% - var(--y) + 46px);
}
.step:nth-child(even) .step-card { bottom: auto; top: calc(var(--y) + 46px); }
.step-title { font: 600 1.2rem/1.1 var(--font-display); }
.step-text { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* ---------- Journal ---------- */

.journal-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.1rem, 2vw, 1.6rem); }
.journal-grid .post-card.is-featured { grid-row: span 3; }
.journal-grid.count-1 { grid-template-columns: 1fr; }
.journal-grid.count-1 .post-card.is-featured a { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }

.post-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
	transition: transform .45s var(--bounce), box-shadow .35s, border-color .35s;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.post-card a { display: flex; flex-direction: column; height: 100%; padding: .7rem; }
.post-card-cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: calc(var(--r) - .6rem); background: var(--navy); }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card-cover img { transform: scale(1.06); }
.post-card-body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem .8rem .8rem; }
.post-card-body .meta { color: var(--sky); }
.post-card-title { font: 600 1.2rem/1.2 var(--font-display); }
.post-card-text { color: var(--muted); }
.post-card.is-featured .post-card-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.1; }
.post-card.is-featured .post-card-body { padding: 1.5rem 1.4rem; gap: .9rem; }
.journal-grid:not(.count-1) .post-card:not(.is-featured) a { flex-direction: row; align-items: center; gap: .4rem; }
.journal-grid:not(.count-1) .post-card:not(.is-featured) .post-card-cover { width: 38%; flex-shrink: 0; aspect-ratio: 4 / 3; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.6rem); }

.empty-line {
	display: flex; align-items: center; justify-content: center; gap: .8rem; padding: 2.4rem 1rem;
	border-radius: var(--r); border: 2px dashed var(--line-strong); color: var(--muted); font-weight: 700;
}

/* ---------- CTA ---------- */

.cta-band { padding: var(--section-y) 0; }
.cta-card {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 2rem;
	padding: clamp(2.2rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem);
	border-radius: var(--r-lg);
	background:
		radial-gradient(circle at 85% 30%, rgba(159, 224, 255, .55), transparent 40%),
		linear-gradient(120deg, var(--deep) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 50%, var(--sky)) 100%);
	box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--accent) 90%, transparent);
}
.cta-stars {
	position: absolute; inset: 0; opacity: .7; pointer-events: none;
	background:
		radial-gradient(1.5px 1.5px at 10% 20%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 51%),
		radial-gradient(2px 2px at 55% 15%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 48% 85%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 92% 80%, #fff 50%, transparent 51%);
}
.cs { position: absolute; fill: #fff; animation: twinkle 2.6s ease-in-out infinite; }
.cs1 { width: 26px; top: 16%; left: 52%; }
.cs2 { width: 16px; bottom: 18%; left: 6%; animation-delay: -1s; }
.cs3 { width: 20px; top: 14%; right: 8%; animation-delay: -1.8s; }
.cta-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem; }
.cta-title { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.cta-title .anomaly { background: none; color: var(--night); -webkit-text-fill-color: var(--night); }
.cta-text { color: rgba(255, 255, 255, .9); font-size: 1.12rem; font-weight: 600; max-width: 46ch; }
.cta-copy .btn-row { margin-top: .6rem; }
.cta-copy .btn-ghost { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); }
/* Personaje que sale del portal */
.cta-mascot { position: relative; z-index: 1; justify-self: center; width: min(100%, 340px); aspect-ratio: 1 / 1.02; }
.cta-portal { position: absolute; right: 0; top: 0; width: 72%; height: auto; animation: portal-glow 4s ease-in-out infinite; }
.cta-iso {
	position: absolute; left: 0; bottom: 0; z-index: 1; width: 52%; height: auto;
	transform-origin: 50% 100%; animation: cta-hop 5s ease-in-out infinite;
	filter: drop-shadow(0 22px 24px rgba(12, 15, 39, .45));
}
@keyframes portal-glow {
	0%, 100% { filter: drop-shadow(0 0 14px rgba(159, 224, 255, .35)) drop-shadow(0 24px 26px rgba(12, 15, 39, .4)); transform: scale(1); }
	50% { filter: drop-shadow(0 0 32px rgba(159, 224, 255, .85)) drop-shadow(0 24px 26px rgba(12, 15, 39, .4)); transform: scale(1.02); }
}
@keyframes cta-hop { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-14px) rotate(-3deg); } 60% { transform: translateY(-6px) rotate(2deg); } }

/* ---------- Contacto ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.contact-info { display: flex; flex-direction: column; align-items: flex-start; gap: 1.4rem; }
.contact-info .label { margin-bottom: 0; }
.contact-title { font-size: clamp(2.3rem, 4.8vw, 4rem); }
.contact-mail {
	display: inline-flex; align-items: center; gap: .7rem;
	padding: .9rem 1.1rem .9rem 1.4rem; border-radius: 999px;
	background: var(--card); border: 1px solid var(--line);
	font: 600 clamp(1rem, 1.8vw, 1.3rem)/1.2 var(--font-display); word-break: break-all;
	transition: transform .4s var(--bounce), border-color .3s, background .3s;
}
.contact-mail .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--grad); color: #fff; flex-shrink: 0; }
.contact-mail:hover { transform: translateY(-3px); border-color: var(--line-strong); background: var(--card-2); }

.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a {
	display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .95rem; border-radius: 999px;
	background: rgba(159, 224, 255, .08); border: 1px solid var(--line);
	font: 800 .85rem/1 var(--font-body);
	transition: background .25s, transform .35s var(--bounce), border-color .25s;
}
.socials .icon { width: 14px; height: 14px; }
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-2px); }

.contact-form-wrap {
	position: relative; margin-top: 3.5rem;
	background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: clamp(1.8rem, 4vw, 2.8rem);
	box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9);
}
/* El personaje se asoma por detrás de la tarjeta */
.peek { position: absolute; right: calc(2.6rem - 16px); bottom: 100%; width: 162px; height: 108px; padding: 0 16px; overflow: hidden; pointer-events: none; }
.peek-iso { display: block; width: 130px; transform: translateY(8px); animation: peek 5s ease-in-out infinite; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 35%, transparent)); }
@keyframes peek { 0%, 100% { transform: translateY(8px); } 45%, 55% { transform: translateY(0) rotate(-3deg); } }

.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.1rem; }
.contact-form .field-subject { grid-column: 1 / -1; }
.contact-form .field { position: relative; margin-bottom: 1.1rem; }
.contact-form label { display: block; margin: 0 0 .45rem .3rem; font: 800 .82rem/1 var(--font-body); color: var(--muted); transition: color .2s; }
.contact-form label span { color: var(--accent); }
.contact-form input, .contact-form textarea {
	width: 100%; padding: .95rem 1.15rem;
	background: rgba(12, 15, 39, .55); color: var(--white);
	border: 1.5px solid var(--line); border-radius: 18px;
	font: 600 1rem/1.5 var(--font-body);
	transition: border-color .25s, box-shadow .25s, background .25s;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form input:focus, .contact-form textarea:focus {
	outline: none; border-color: var(--accent); background: rgba(12, 15, 39, .8);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}
.contact-form .field:focus-within label { color: var(--white); }
.contact-form .field.has-error input, .contact-form .field.has-error textarea { border-color: #FF8FA3; }
.field-error { display: block; min-height: 1em; margin: .35rem 0 0 .3rem; font-size: .8rem; font-weight: 700; color: #FFA3B4; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: .4rem; }
.form-status { font-weight: 700; font-size: .92rem; color: var(--muted); }
.form-status[data-state="sent"] { color: var(--sky); }
.form-status[data-state="error"] { color: #FFA3B4; }
.contact-form.is-loading button { opacity: .6; pointer-events: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */

.site-footer {
	position: relative; margin-top: clamp(3rem, 6vw, 5rem);
	padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
	background:
		radial-gradient(1px 1px at 12% 30%, rgba(255, 255, 255, .7) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 78% 22%, rgba(255, 255, 255, .6) 50%, transparent 51%),
		radial-gradient(1px 1px at 52% 70%, rgba(255, 255, 255, .5) 50%, transparent 51%),
		var(--night-deep);
}
.wave-footer { top: calc(-1 * clamp(40px, 6vw, 80px) + 1px); color: var(--night-deep); }
.footer-top { display: grid; grid-template-columns: auto 1fr; gap: 3rem clamp(3rem, 8vw, 7rem); align-items: start; }
.footer-logo { display: inline-block; } /* Logo fijo: sin animación. */
.footer-logo img { width: clamp(150px, 15vw, 200px); }
/* La columna del correo toma el ancho de la dirección, así no se corta. */
.footer-cols { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr) max-content; gap: 2rem clamp(2rem, 4vw, 3.5rem); }
.footer-col .meta { margin-bottom: 1rem; color: var(--sky); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { font-weight: 700; transition: color .2s; }
.footer-col a:hover { color: var(--sky); }
.footer-col .socials { flex-direction: row; }
.footer-mail { display: inline-flex; align-items: center; gap: .6rem; overflow-wrap: anywhere; }
.footer-mail .icon { flex: none; width: 20px; height: 20px; color: var(--sky); }

.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.copyright, .legal a { font-size: .85rem; font-weight: 700; color: var(--muted); }
.legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; }
.legal a { display: inline-flex; align-items: center; gap: .4rem; transition: color .2s; }
.legal a:hover { color: var(--white); }
.legal .to-top { padding: .5rem .9rem; border-radius: 999px; background: rgba(159, 224, 255, .08); }
.legal .icon { width: 14px; height: 14px; }

.admin-hint { margin-top: 1.4rem; padding: .8rem 1.1rem; border-radius: var(--r-sm); border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: .85rem; font-weight: 600; }
.admin-hint a { color: var(--sky); font-weight: 800; }

/* ---------- Páginas internas ---------- */

.page-head { padding-top: calc(var(--header-h) + 4rem); padding-bottom: 3rem; background: radial-gradient(ellipse 70% 80% at 80% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.page-title { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.page-intro { margin-top: 1.3rem; max-width: 56ch; font-size: 1.12rem; }

.filters { list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.filters a { display: inline-block; padding: .6rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-strong); font-weight: 800; font-size: .9rem; transition: background .2s, color .2s, border-color .2s; }
.filters a:hover { border-color: var(--sky); }
.filters a[aria-current] { background: var(--grad); border-color: transparent; color: #fff; }

.single { padding-top: calc(var(--header-h) + 4rem); }
.entry-header { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 3rem; }
.entry-header .meta { color: var(--sky); }
.entry-header .meta a:hover { color: var(--white); }
.entry-cover { margin-block: 0 3.5rem; overflow: hidden; border-radius: var(--r-lg); }
.entry-cover img { width: 100%; }

.entry-content { font-size: 1.1rem; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2, .entry-content h3 { margin-top: 2em; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content a { color: var(--sky); text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 2px; }
.entry-content blockquote { margin-inline: 0; padding: 1.3rem 1.6rem; border-radius: var(--r); background: var(--card); border-left: 5px solid var(--accent); font: 500 1.35rem/1.45 var(--font-display); }
.entry-content code { background: var(--card); padding: .15em .45em; border-radius: 8px; font-size: .9em; }
.entry-content pre { background: var(--night-deep); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 1.2rem; overflow: auto; }
.entry-content pre code { background: none; padding: 0; }
.entry-content hr { border: 0; height: 2px; background: var(--line); border-radius: 2px; margin-block: 3em; }
.entry-content img { height: auto; border-radius: var(--r-sm); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content .alignwide { margin-inline: calc(50% - min(50vw - var(--gutter), 600px)); max-width: none; }
.entry-content .alignfull { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .wp-block-button__link { background: var(--grad); color: #fff; border-radius: 999px; text-decoration: none; font-weight: 800; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .6rem; text-align: center; }

.tags { list-style: none; padding: 0; margin: 3rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tags a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: rgba(159, 224, 255, .08); border: 1px solid var(--line); font-size: .85rem; font-weight: 700; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 4rem; }
.post-nav > div { padding: 1.2rem 1.4rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav a { display: block; margin-top: .4rem; font: 600 1.1rem/1.3 var(--font-display); transition: color .2s; }
.post-nav a:hover { color: var(--sky); }

.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-top: 3.5rem; }
.page-numbers { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 800; transition: background .2s, color .2s, transform .3s var(--bounce); }
.page-numbers .icon { width: 18px; height: 18px; }
.page-numbers.current, .page-numbers:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-2px); }
.page-numbers.dots { background: none; border: 0; }

/* Ficha de juego */
.game-hero { padding-top: calc(var(--header-h) + 3rem); padding-bottom: 3rem; }
.link-back { margin-bottom: 2.5rem; }
.game-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: 2.5rem; }
.game-hero-grid .badge { margin-bottom: 1.3rem; }
.game-hero-grid .lead { margin-top: 1.3rem; color: var(--muted); max-width: 52ch; }
.game-facts { margin: 0; padding: .6rem 1.4rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.game-facts div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; }
.game-facts div + div { border-top: 1px dashed var(--line-strong); }
.game-facts dt { font-weight: 700; color: var(--muted); }
.game-facts dd { margin: 0; font-weight: 800; text-align: right; }

/* 404 */
.not-found { min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--header-h) + 2rem); }
.not-found-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.not-found .page-intro { margin-bottom: 2.3rem; }
.not-found-iso { width: min(100%, 300px); justify-self: center; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 40px color-mix(in srgb, var(--accent) 40%, transparent)); }

/* Comentarios */
.comments { margin-top: 4rem; }
.comment-list { list-style: none; padding: 0; margin: 1.2rem 0 3rem; display: flex; flex-direction: column; gap: 1rem; }
.comment-list .children { list-style: none; padding-left: 1.5rem; margin-top: 1rem; }
.comment-body { padding: 1.3rem 1.5rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: .7rem; font-weight: 800; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .82rem; color: var(--muted); margin: .3rem 0 .8rem; }
.comment-reply-title { font-size: 1.5rem; margin-bottom: 1rem; }
.comment-form label { display: block; font-weight: 800; font-size: .85rem; color: var(--muted); margin-bottom: .4rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .9rem 1.1rem; background: var(--card); color: var(--white); border: 1.5px solid var(--line); border-radius: 18px; font: 600 1rem var(--font-body);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.comment-form p { margin-bottom: 1.1rem; }

/* ---------- Aparición al hacer scroll ---------- */

.js .reveal { opacity: 0; transform: translateY(34px) scale(.98); transition: opacity .8s var(--ease), transform .9s var(--bounce); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
	.value { flex-basis: calc(33.333% - 1.1rem); max-width: calc(33.333% - .74rem); }
	.areas { grid-template-columns: repeat(2, 1fr); }
	.footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
	:root { --header-h: 92px; }
	.site-header { top: 10px; }
	.header-inner { height: 68px; padding-left: 1rem; }
	.site-logo-img { height: 40px; }

	/* Menú a pantalla completa */
	.nav-toggle { display: inline-flex; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		display: flex; flex-direction: column; justify-content: space-between;
		padding: calc(var(--header-h) + 2.5rem) var(--gutter) 2.5rem;
		background:
			radial-gradient(1.5px 1.5px at 15% 20%, #fff 50%, transparent 51%),
			radial-gradient(1px 1px at 80% 35%, #fff 50%, transparent 51%),
			radial-gradient(1.5px 1.5px at 60% 75%, #fff 50%, transparent 51%),
			radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 50%),
			var(--night);
		clip-path: circle(0 at calc(100% - 60px) 40px); visibility: hidden;
		transition: clip-path .7s var(--ease), visibility 0s .7s;
	}
	.site-nav.is-open { clip-path: circle(150% at calc(100% - 60px) 40px); visibility: visible; transition: clip-path .7s var(--ease); }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: .5rem; }
	.site-nav .menu a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-radius: 22px; background: rgba(159, 224, 255, .06); font: 600 clamp(1.6rem, 7vw, 2.3rem)/1 var(--font-display); }
	.site-nav .menu-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); font: 800 .8rem var(--font-body); color: #fff; }
	.site-nav .menu li:last-child a { margin-left: 0; box-shadow: none; }
	.site-nav-foot { display: flex; flex-direction: column; gap: 1rem; }
	.nav-mail { font: 600 1.1rem var(--font-display); color: var(--sky); }
	.site-nav .admin-hint { display: none; }
	body.menu-open { overflow: hidden; }

	.hero { min-height: auto; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 6rem; }
	.hero-grid { grid-template-columns: 1fr; }
	.hero-visual { order: -1; width: min(82%, 360px); margin-bottom: -1rem; }
	.scroll-cue { display: none; }

	.section-head, .about-grid, .contact-grid, .manifesto-grid, .game-hero-grid, .not-found-grid, .cta-card { grid-template-columns: 1fr; }
	.cta-mascot { order: -1; width: 230px; justify-self: start; }
	.manifesto-side { display: flex; align-items: center; justify-content: space-between; }
	.manifesto-mascot { width: 120px; }
	.manifesto.has-art .manifesto-grid { grid-template-columns: 1fr; }
	.manifesto.has-art .manifesto-side { display: block; }
	.manifesto-art { width: min(100%, 560px); margin: 1rem auto 0; }
	.games-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
	.games-empty { grid-template-columns: repeat(2, 1fr); }
	.games-empty .slot:last-child { display: none; }
	.journal-grid { grid-template-columns: 1fr; }
	.journal-grid .post-card.is-featured { grid-row: auto; }
	.journal-grid.count-1 .post-card.is-featured a { grid-template-columns: 1fr; }

	/* Camino en vertical */
	.journey-track { height: auto; }
	.journey-path { display: none; }
	.journey-steps { position: relative; display: flex; flex-direction: column; gap: 1.4rem; padding-left: 0; }
	.journey-steps::before { content: ""; position: absolute; left: 29px; top: 20px; bottom: 20px; border-left: 3px dotted var(--sky); opacity: .5; }
	.step { display: flex; align-items: center; gap: 1.2rem; }
	.step-bubble, .step-card { position: relative; left: auto; top: auto; bottom: auto; transform: none; }
	.step:nth-child(even) .step-card { top: auto; }
	.step-bubble { flex: 0 0 60px; }
	.step:hover .step-bubble { transform: scale(1.1) rotate(-8deg); }
	.step-card { width: auto; text-align: left; }
}

@media (max-width: 620px) {
	body { font-size: 16px; }
	.games-grid, .post-grid, .areas, .games-empty { grid-template-columns: 1fr; }
	.games-empty .slot:nth-child(n+3) { display: none; }
	.games-empty-main { grid-template-columns: 1fr; }
	.games-scene { width: min(100%, 340px); justify-self: center; }
	.value { flex-basis: 100%; max-width: 100%; }
	.contact-form .field-row { grid-template-columns: 1fr; }
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-col-mail { grid-column: 1 / -1; }
	.journal-grid:not(.count-1) .post-card:not(.is-featured) a { flex-direction: column; align-items: stretch; }
	.journal-grid:not(.count-1) .post-card:not(.is-featured) .post-card-cover { width: 100%; aspect-ratio: 16 / 10; }
	.btn-row { width: 100%; }
	.btn-row .btn { flex: 1 1 100%; justify-content: space-between; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav .next { grid-column: 1; text-align: left; }
	.ribbon { margin-top: -1.6rem; }
	.cloud-a { width: 120px; }
	.cloud-a::before { width: 54px; height: 54px; top: -28px; }
	.cloud-a::after { width: 40px; height: 40px; left: 64px; top: -18px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* El camino de creación es su propia sección (bloque), pegada al enfoque */
.journey-section { padding-top: 0; }
.journey-section .journey { margin-top: 0; }
.approach + .journey-section { margin-top: calc(-1 * clamp(2rem, 4vw, 3rem)); }

/* ---------- Elementor ----------
   La portada se arma con los widgets "Anomalia" dentro de un contenedor sin márgenes. */
.elementor .e-con.anomalia-stack,
.elementor .anomalia-stack > .e-con-inner {
	--padding-top: 0; --padding-right: 0; --padding-bottom: 0; --padding-left: 0;
	--gap: 0; --row-gap: 0; --column-gap: 0;
	--content-width: 100%; --width: 100%;
	padding: 0; gap: 0; max-width: none;
}
.elementor .anomalia-stack > .elementor-element { width: 100%; }
.elementor-widget-anomalia-journey .journey-section { margin-top: calc(-1 * clamp(2rem, 4vw, 3rem)); }
.elementor-widget-anomalia-manifesto, .elementor-widget-anomalia-hero { position: relative; z-index: 1; }
/* Elementor no debe tocar las imágenes del tema. */
.elementor .brand-img { border-radius: 0; box-shadow: none; }

/* Dentro del editor de Elementor: todo visible, sin esperar la animación de aparición. */
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .hero { padding-top: calc(var(--header-h) + 2rem); }

/* ---------- Redes sociales con íconos oficiales (Simple Icons, CC0) ---------- */
.socials a { gap: .5rem; }
.socials .social-icon { width: 16px; height: 16px; flex-shrink: 0; }
/* Pie: botones redondos, solo ícono (el nombre queda para lectores de pantalla). */
.footer-col .socials { flex-direction: row; flex-wrap: wrap; gap: .5rem; }
.footer-col .socials a { width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.footer-col .socials .social-icon { width: 19px; height: 19px; }
.footer-col .socials .social-label {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* Celulares angostos: el logo del menú deja lugar al selector de idioma y al botón Menú. */
@media (max-width: 430px) {
	.site-logo-img { height: 32px; }
	.header-actions { gap: .35rem; }
	.lang-switch a { min-width: 34px; padding: 0 .45rem; }
	.nav-toggle { padding: .65rem .85rem; }
}

/* Celulares muy angostos: el botón del menú queda solo con el ícono (el texto sigue para lectores de pantalla). */
@media (max-width: 380px) {
	.nav-toggle { width: 44px; height: 44px; padding: 0; justify-content: center; }
	.nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}


/* ---------- Juegos: a dónde llevan (sitio oficial, una plataforma o varios logos) ---------- */
.game-card { display: flex; flex-direction: column; }
.game-card-link { flex: 1; height: auto; }
.link-platform .social-icon, .link-platform .platform-icon { width: 18px; height: 18px; flex-shrink: 0; }
.link-platform .platform-icon, .link-platform:hover .platform-icon { transform: none; }
.game-card-platforms {
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem;
	margin: 0 1.5rem 1.3rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong);
}
.game-card-platforms-label { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.game-card-platforms ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.platform-logo {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	border: 1px solid var(--line-strong); color: var(--white);
	transition: background .2s, border-color .2s, transform .3s var(--bounce);
}
.platform-logo:hover, .platform-logo:focus-visible { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.platform-logo .social-icon, .platform-logo .platform-icon { width: 19px; height: 19px; }
.btn-platform .social-icon, .btn-platform .platform-icon { width: 20px; height: 20px; flex-shrink: 0; }
.btn-platform .platform-icon { padding: 0; border-radius: 0; background: none; }
.btn-platform:hover .platform-icon { transform: none; }
@media (prefers-reduced-motion: reduce) { .platform-logo { transition: none; } }

/* ---------- Tráiler en modal ---------- */
.trailer-chip {
	display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .95rem .45rem .45rem; border-radius: 999px;
	border: 1px solid var(--line-strong); background: rgba(244, 248, 255, .04); color: var(--white);
	font: 800 .88rem/1 var(--font-body); cursor: pointer; transition: background .2s, border-color .2s;
}
.trailer-chip .icon { width: 28px; height: 28px; padding: 7px 6px 7px 8px; border-radius: 50%; background: var(--grad); color: #fff; fill: #fff; }
.trailer-chip:hover, .trailer-chip:focus-visible { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.btn-trailer .icon { fill: currentColor; }
.trailer-modal {
	width: min(1100px, 94vw); max-width: none; max-height: none; padding: 0; border: 0; background: transparent; color: var(--white); overflow: visible;
}
.trailer-modal::backdrop { background: rgba(8, 10, 30, .82); backdrop-filter: blur(6px); }
.trailer-modal[open] { animation: trailer-in .3s var(--ease); }
@keyframes trailer-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.trailer-modal-inner { padding: .8rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line-strong); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), var(--glow); }
.trailer-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .1rem .3rem .7rem .7rem; }
.trailer-modal-title { margin: 0; font: 600 1.15rem/1.2 var(--font-display); }
.trailer-modal-close {
	display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%;
	border: 1px solid var(--line-strong); background: transparent; color: #fff; cursor: pointer; transition: background .2s;
}
.trailer-modal-close:hover, .trailer-modal-close:focus-visible { background: var(--accent); border-color: var(--accent); }
.trailer-modal-frame { aspect-ratio: 16 / 9; border-radius: calc(var(--r) - .5rem); overflow: hidden; background: #000; }
.trailer-modal-frame iframe, .trailer-modal-frame video { display: block; width: 100%; height: 100%; border: 0; }
body.modal-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .trailer-modal[open] { animation: none; } .trailer-chip { transition: none; } }

/* ---------- "Sigue nuestras redes" (Juegos y llamado) ---------- */
.follow { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.follow-title { margin: 0; font: 800 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--sky); }
.socials-follow { gap: .55rem; }
.socials-follow a { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
.socials-follow .social-icon { width: 20px; height: 20px; }
.socials-follow .social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.follow-games { margin-top: .4rem; }
/* Sobre el fondo azul del llamado */
.follow-cta { margin-top: .4rem; }
.follow-cta .follow-title { color: #fff; }
.follow-cta .socials a { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .5); color: #fff; }
.follow-cta .socials a:hover { background: #fff; border-color: #fff; color: var(--deep); }

/* ---------- Colaboraciones: "¿Tenés un juego entre manos?" ---------- */
.pitch-card {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
	padding: clamp(2rem, 5vw, 4rem) clamp(1.8rem, 5vw, 4.5rem);
	border-radius: var(--r-lg); border: 1px solid var(--line);
	background:
		radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 45%),
		linear-gradient(150deg, var(--card-2), var(--card));
}
.pitch-glow {
	position: absolute; right: -12%; bottom: -40%; width: 55%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, color-mix(in srgb, var(--sky) 22%, transparent), transparent 65%);
	animation: pitch-pulse 7s ease-in-out infinite;
}
@keyframes pitch-pulse { 50% { transform: scale(1.12); opacity: .7; } }
.pitch-head, .pitch-body { position: relative; z-index: 1; }
.pitch-title { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-bottom: 1.4rem; }
.pitch-lead { margin: 0; font: 700 clamp(1.15rem, 1.6vw, 1.4rem)/1.45 var(--font-body); color: var(--white); max-width: 34ch; }
.pitch-body { display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem; padding-top: .4rem; }
.pitch-body p { margin: 0; }
.pitch-closing { font-weight: 800; color: var(--sky); padding-left: 1rem; border-left: 3px solid var(--accent); }
.pitch-body .btn { margin-top: .6rem; }
@media (max-width: 900px) { .pitch-card { grid-template-columns: 1fr; } }

/* Ancla de "Volver arriba": al principio real de la página (el menú es fijo y no sirve de destino). */
.page-top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ---------- Bandas: separan secciones con un fondo propio y ondas ---------- */
:root { --band: #19225A; --band-2: #141B4B; }
.section-band {
	position: relative; margin: var(--wave-h) 0 0;
	padding: var(--section-y) 0;
	background:
		radial-gradient(1px 1px at 8% 22%, rgba(255, 255, 255, .55) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 86% 14%, rgba(255, 255, 255, .5) 50%, transparent 51%),
		radial-gradient(1px 1px at 64% 78%, rgba(255, 255, 255, .45) 50%, transparent 51%),
		radial-gradient(560px 380px at 14% 420px, color-mix(in srgb, var(--accent) 20%, transparent), transparent 100%),
		radial-gradient(circle at 92% 100%, color-mix(in srgb, var(--sky) 10%, transparent), transparent 40%),
		linear-gradient(180deg, var(--band), var(--band-2));
}
.section-band .wave-top { top: calc(-1 * clamp(40px, 6vw, 80px) + 1px); color: var(--band); }
.section-band .wave-bottom { bottom: -1px; color: var(--night); }
.section-band:has(> .wave-bottom) { padding-bottom: calc(var(--section-y) + var(--wave-h)); }
.journey-section.section-band .journey { margin-top: 0; }

/* Contacto: la banda baja hasta el pie, que la cierra con su propia onda. */
.contact.section-band { margin-bottom: 0; padding-bottom: calc(var(--section-y) + var(--wave-h)); }
body:has(.contact.section-band) .site-footer { margin-top: 0; }
.contact.section-band .contact-form-wrap { background: rgba(12, 15, 39, .5); border-color: var(--line-strong); }

/* Colaboraciones + Cómo nace un mundo: una sola banda cuando van seguidas
   (sirve con Elementor, donde cada sección va dentro de su widget, y sin él). */
:root { --band-mid: #171F53; }
.pitch.section-band .pitch-card { background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%), rgba(12, 15, 39, .42); border-color: var(--line-strong); }
:is(.pitch.section-band:has(+ .journey-section), .elementor-element:has(> .pitch.section-band):has(+ .elementor-element > .journey-section)) { margin-bottom: 0; }
.pitch.section-band:has(+ .journey-section),
.elementor-element:has(> .pitch.section-band):has(+ .elementor-element > .journey-section) > .pitch {
	margin-bottom: 0; padding-bottom: 0;
	background-image:
		radial-gradient(1px 1px at 8% 22%, rgba(255, 255, 255, .55) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 86% 14%, rgba(255, 255, 255, .5) 50%, transparent 51%),
		radial-gradient(520px 280px at 14% 300px, color-mix(in srgb, var(--accent) 20%, transparent), transparent 100%),
		linear-gradient(180deg, var(--band), var(--band-mid));
}
.pitch.section-band + .journey-section,
.elementor-element:has(> .pitch.section-band) + .elementor-element > .journey-section {
	margin-top: 0;
	background-image:
		radial-gradient(1px 1px at 64% 78%, rgba(255, 255, 255, .45) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 30% 40%, rgba(255, 255, 255, .45) 50%, transparent 51%),
		radial-gradient(circle at 92% 100%, color-mix(in srgb, var(--sky) 10%, transparent), transparent 40%),
		linear-gradient(180deg, var(--band-mid), var(--band-2));
}
:is(.pitch.section-band + .journey-section, .elementor-element:has(> .pitch.section-band) + .elementor-element > .journey-section) .wave-top { display: none; }

/* Juego sin enlaces: la tarjeta no es clickeable (los juegos no tienen página propia). */
.game-card:has(.game-card-link.is-static):hover { transform: none; border-color: var(--line); box-shadow: none; }
.game-card:has(.game-card-link.is-static):hover .game-card-cover img { transform: none; }

/* Formulario: desplegable "Motivo" (Anomalia → Correos) */
.contact-form select {
	width: 100%; padding: .95rem 3rem .95rem 1.15rem; appearance: none; -webkit-appearance: none; cursor: pointer;
	background: rgba(12, 15, 39, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239FE0FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1.1rem center / 18px;
	color: var(--white); border: 1.5px solid var(--line); border-radius: 18px;
	font: 600 1rem/1.5 var(--font-body); transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.contact-form select:focus { outline: none; border-color: var(--accent); background-color: rgba(12, 15, 39, .8); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.contact-form select option { background: #1B2142; color: #F4F8FF; }

/* Contacto: otros correos (soporte, prensa…) */
.contact-emails { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.contact-emails li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; }
.contact-emails-label { min-width: 5.5rem; color: var(--muted); font: 800 .74rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.contact-emails a { color: var(--white); font-weight: 700; border-bottom: 1.5px solid var(--line-strong); transition: color .2s, border-color .2s; }
.contact-emails a:hover { color: var(--sky, #9FE0FF); border-color: currentColor; }

/* Editor de Elementor: aviso de sección oculta (Anomalia → Portada → Secciones). */
.anomalia-hidden-note { margin: 1rem auto; width: min(100% - 2rem, 1100px); padding: 1.1rem 1.4rem; border: 2px dashed var(--line-strong); border-radius: 16px; color: var(--muted); font-size: .95rem; text-align: center; }
.anomalia-hidden-note strong { color: var(--white); }

/* "Únete a la aventura" + Contacto: una sola banda cuando la CTA va unida (sin "Cómo nace un mundo"). */
.cta-band.cta-joined { margin-bottom: 0; padding-bottom: 0; background-image:
	radial-gradient(1px 1px at 8% 22%, rgba(255, 255, 255, .55) 50%, transparent 51%),
	radial-gradient(1.5px 1.5px at 86% 14%, rgba(255, 255, 255, .5) 50%, transparent 51%),
	radial-gradient(520px 280px at 14% 300px, color-mix(in srgb, var(--accent) 20%, transparent), transparent 100%),
	linear-gradient(180deg, var(--band), var(--band-mid)); }
:is(.cta-joined + .contact, .elementor-element:has(> .cta-joined) + .elementor-element > .contact) {
	margin-top: 0;
	background-image:
		radial-gradient(1px 1px at 64% 78%, rgba(255, 255, 255, .45) 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 30% 40%, rgba(255, 255, 255, .45) 50%, transparent 51%),
		radial-gradient(circle at 92% 100%, color-mix(in srgb, var(--sky) 10%, transparent), transparent 40%),
		linear-gradient(180deg, var(--band-mid), var(--band-2));
}
:is(.cta-joined + .contact, .elementor-element:has(> .cta-joined) + .elementor-element > .contact) .wave-top { display: none; }

/* Celular: las tarjetas de "Nuestra filosofía" pasan a un carrusel que se desliza con el dedo. */
@media (max-width: 620px) {
	.values-list {
		flex-wrap: nowrap; justify-content: flex-start; gap: .9rem;
		overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin-inline: calc(-1 * var(--gutter)); padding: .6rem var(--gutter) 1.4rem; scroll-padding-inline: var(--gutter);
	}
	.values-list::-webkit-scrollbar { display: none; }
	.value { flex: 0 0 80%; max-width: 80%; min-width: 0; scroll-snap-align: start; }
	.value:hover, .value:nth-child(even):hover { transform: none; }
	.js .values-list .value.reveal { opacity: 1; transform: none; }
	.acrostic { margin-bottom: 1.2rem; }
}

/* Manifiesto (fondo claro): la palabra destacada en un azul más profundo para que se lea bien. */
.manifesto-line .anomaly { background: linear-gradient(100deg, color-mix(in srgb, var(--accent) 80%, #0b1a4a), color-mix(in srgb, var(--accent) 55%, #1b2a7a)); -webkit-background-clip: text; background-clip: text; }

/* Celular: el logo del pie va centrado. */
@media (max-width: 620px) {
	.footer-logo { justify-self: center; }
}
