/* ==================================================
   Error 404 — estilos propios de la plantilla (hero: a través del cero)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   wp.js recorta la escena siguiente con la forma del cero (--rx, --ry, --cx, --cy) y la abre al viajar
   ================================================== */

.wp-hero { --foot-h: 92px; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100vh; height: 100svh; min-height: 720px; padding-top: 68px; overflow: hidden; color: #fff; background: #07080b; }

/* ---------- Escenas ---------- */
.wp-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.wp-scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; will-change: transform, clip-path; }
.wp-scene.is-cur, .wp-scene.is-next { visibility: visible; }
.wp-scene.is-cur { z-index: 1; }
.wp-scene.is-next { z-index: 2; clip-path: ellipse(var(--rx, 0px) var(--ry, 0px) at var(--cx, 50%) var(--cy, 50%)); }
.wp-scene::after { content: ''; position: absolute; inset: 0; z-index: 9; background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(0, 0, 0, .55)), linear-gradient(0deg, rgba(7, 8, 11, .75), transparent 45%); pointer-events: none; }
.wp-scene.is-next::after { background: radial-gradient(closest-side, transparent 55%, rgba(0, 0, 0, .55)); }
.wp-scene.is-next .wp-bg { filter: brightness(1.15) saturate(1.2); }
.wp-scene img { position: absolute; max-width: none; will-change: transform; }
.wp-bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-scene--museum { background: radial-gradient(60% 70% at 50% 60%, #2a1d0f, #0f0b05 70%); }
.wp-bg--lisa { inset: auto; left: 0; right: 0; bottom: 0; margin: 0 auto; width: auto; height: 74%; object-fit: contain; box-shadow: 0 0 0 14px #3b2a15, 0 0 0 20px #8a6a33, 0 40px 120px rgba(0, 0, 0, .8); }
.wp-scene--sea { background: radial-gradient(80% 60% at 50% 30%, #1d3442, #0d1216 70%); }
.wp-fg--cave { left: 0; right: 0; bottom: 0; margin: 0 auto; height: 62%; width: auto; }
.wp-fg--compass { right: 4%; bottom: 0; height: 60%; width: auto; }
.wp-fg--float { left: 0; right: 0; bottom: 13%; margin: 0 auto; height: 48%; width: auto; }
.wp-water { left: -2%; width: 104%; height: auto; }
.wp-water--back { bottom: 6%; }
.wp-water--front { bottom: -1%; z-index: 3; }
.wp-cloud { width: 38%; height: auto; opacity: .85; }
.wp-cloud--a { left: 52%; top: 8%; }
.wp-cloud--b { left: 6%; top: 18%; width: 26%; opacity: .5; transform: scaleX(-1); }

/* ---------- El 404 ---------- */
.wp-digits { position: absolute; z-index: 4; left: 0; right: 0; top: 47%; display: flex; justify-content: flex-end; padding-right: clamp(40px, 6vw, 110px); align-items: center; gap: .02em; font-family: var(--mb-display); font-size: clamp(200px, min(28vw, 52vh), 560px); font-weight: 900; line-height: .8; letter-spacing: -.04em; transform: translateY(-58%); pointer-events: none; }
.wp-4 { position: relative; color: #fff; mix-blend-mode: difference; text-shadow: 0 0 0 transparent; will-change: transform; }
.wp-4::before, .wp-4::after { content: attr(data-g); position: absolute; left: 0; top: 0; opacity: 0; mix-blend-mode: screen; }
.wp-4::before { color: #ff2a5c; }
.wp-4::after { color: #2affe1; }
.wp-hero.is-glitch .wp-4::before { opacity: .9; transform: translate(-.03em, .01em); clip-path: inset(10% 0 55% 0); }
.wp-hero.is-glitch .wp-4::after { opacity: .9; transform: translate(.03em, -.01em); clip-path: inset(52% 0 12% 0); }
.ak-page .wp-hole { position: relative; flex: 0 0 auto; font: inherit; line-height: inherit; transition: none; width: .62em; height: .82em; margin: 0 .03em; padding: 0; background: transparent; border: 0; border-radius: 50%; cursor: pointer; pointer-events: auto; will-change: transform; }
.wp-hole__ring { position: absolute; inset: 0; border: .1em solid #fff; border-radius: 50%; box-shadow: 0 0 60px rgba(120, 220, 255, .35), inset 0 0 60px rgba(120, 220, 255, .35); mix-blend-mode: difference; }
.wp-hole__swirl { position: absolute; inset: .1em; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 255, 255, 0), rgba(160, 230, 255, .22), rgba(255, 255, 255, 0) 30%, rgba(255, 120, 200, .18) 55%, rgba(255, 255, 255, 0) 75%); mix-blend-mode: screen; animation: wp-spin 9s linear infinite; }
@keyframes wp-spin { to { transform: rotate(360deg); } }
.wp-hole__k { position: absolute; left: 50%; bottom: -.18em; padding: 5px 10px; font-family: var(--mb-mono); font-size: 13px; font-weight: 700; letter-spacing: .14em; line-height: 1.2; white-space: nowrap; color: #0a0a0a; background: var(--accent); border: 2px solid #0a0a0a; transform: translateX(-50%); }
.ak-page .wp-hole:hover .wp-hole__ring, .ak-page .wp-hole:focus-visible .wp-hole__ring { border-color: var(--accent); }

/* ---------- Texto ---------- */
.wp-copy { position: relative; z-index: 5; max-width: min(600px, 42vw); padding: 0 var(--gutter) clamp(18px, 3vh, 32px); }
.wp-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 12px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.wp-kicker__err { padding: 4px 9px; color: #0a0a0a; background: var(--accent); }
.wp-kicker__dim b { color: var(--accent); }
.wp-page .wp-title { margin: 0 0 10px; font-family: var(--mb-display); font-size: clamp(32px, 3.6vw, 60px); font-weight: 900; line-height: 1; letter-spacing: -.025em; text-align: left; text-transform: uppercase; color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.wp-text { max-width: 44ch; margin: 0 0 20px; font-family: 'Manrope', sans-serif; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, .86); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.wp-acts { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.ak-page .wp-home, .ak-page .wp-travel { display: inline-flex; width: auto; flex: 0 0 auto; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 0 22px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s linear, color .15s linear; }
.ak-page .wp-home { color: #0a0a0a; background: var(--accent); border: 2px solid #000; box-shadow: 6px 6px 0 var(--brand); }
.ak-page .wp-home:hover, .ak-page .wp-home:focus-visible { color: #0a0a0a; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--brand); }
.ak-page .wp-travel { color: #fff; background: rgba(0, 0, 0, .35); border: 2px solid #fff; }
.ak-page .wp-travel:hover, .ak-page .wp-travel:focus-visible { color: #0a0a0a; background: #fff; }
.wp-status, .ak-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie ---------- */
.wp-foot { position: relative; z-index: 8; flex: 0 0 auto; display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 14px clamp(20px, 3vw, 44px); align-items: center; padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter); background: rgba(10, 10, 10, .96); border-top: 3px solid var(--accent); }
.wp-foot__meta { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.wp-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.wp-ctrl { display: flex; align-items: center; gap: 10px; }
.wp-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.wp-idx { display: inline-block; font-family: var(--mb-display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: -.02em; vertical-align: -5px; color: var(--accent); }

@media (max-width: 1180px) {
	.wp-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.wp-foot .ak-actions { grid-column: 1 / -1; }
}
@media (max-height: 820px) and (min-width: 1001px) { .wp-text { display: none; } }
@media (max-width: 1000px) {
	.wp-hero { height: auto; min-height: 0; }
	.wp-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 700px; max-height: 1000px; }
	.wp-digits { top: 34%; justify-content: center; padding-right: 0; font-size: clamp(150px, 40vw, 360px); }
	.wp-copy { max-width: 640px; }
	.wp-fg--compass { right: -12%; }
}
@media (max-width: 700px) {
	.wp-hero { padding-top: 60px; }
	.wp-hero::before { height: min(calc(100svh - 136px), 820px); min-height: 680px; }
	.wp-digits { top: 34%; font-size: 40vw; }
	.wp-copy { max-width: none; }
	.wp-page .wp-title { font-size: clamp(28px, 8vw, 40px); }
	.wp-hole__k { font-size: 11px; }
	.wp-fg--cave { height: 40%; }
	.wp-fg--compass { height: 40%; }
	.wp-fg--float { height: 34%; }
	.wp-bg--lisa { height: 54%; }
	.wp-text { display: none; }
	.wp-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.wp-ctrl { order: -1; }
	.wp-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.wp-hole__swirl { animation: none; }
	.ak-page .wp-home, .ak-page .wp-travel { transition: none; }
}
