/* ==================================================
   Artistic Mode — estilos propios de la plantilla (hero: inmersión dimensional)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   ================================================== */

.am-hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 600px;
	padding-top: 68px;
	overflow: hidden;
	background: #0a0a0a;
	color: #f5f5f0;
}
.am-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #0a0a0a; }

/* ---------- Mundos: dioramas de capas (cada capa a su profundidad) ---------- */
.am-world {
	--fx: 50%;
	--fy: 50%;
	--ink: #f5f5f0;
	position: absolute;
	inset: 0;
	overflow: hidden;
	color: var(--ink);
	visibility: hidden;
}
.am-world:first-child { visibility: visible; }
.am-world--4 { --ink: #1d1d1f; }
.am-layer { position: absolute; inset: 0; transform-origin: var(--fx) var(--fy); will-change: transform; pointer-events: none; }
.am-layer img,
.am-layer span { position: absolute; display: block; -webkit-user-drag: none; user-select: none; }
.am-bg { inset: -4%; width: 108%; height: 108%; object-fit: cover; }

/* Mundo 1: el auto en la nube se mece */
.am-car { left: 50%; top: 52%; height: 86%; width: auto; translate: -50% -50%; animation: am-bob 7s ease-in-out infinite; }
/* Mundo 2: planeta que gira lento, desierto y excursionistas */
.am-planet { left: 50%; top: 40%; height: 58%; width: auto; translate: -50% -50%; animation: am-spin 120s linear infinite; }
/* El suelo se alarga bajo el borde: al acercarse el mundo (escala menor) nunca queda un corte abajo */
.am-land { left: 0; bottom: -14%; width: 100%; height: 34%; object-fit: cover; object-position: 50% 0; }
.am-people { left: 50%; bottom: 4%; height: 32%; width: auto; translate: -50% 0; }
/* Mundo 3: astronauta flotando y pájaros a la deriva */
.am-birds { left: 6%; top: 12%; width: 36%; height: auto; animation: am-drift 16s ease-in-out infinite alternate; }
.am-astro { left: 66%; top: 52%; height: 84%; width: auto; translate: -50% -50%; animation: am-float 9s ease-in-out infinite; }
/* Mundo 4: niebla, platillos, rayo y el campo */
.am-clouds {
	inset: 0;
	background:
		radial-gradient(ellipse 34% 18% at 76% 36%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 22% 12% at 88% 26%, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 26% 13% at 16% 24%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
		radial-gradient(ellipse 20% 9% at 46% 12%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%);
}
.am-ufo { height: auto; }
.am-ufo--big { left: 50%; top: 2%; width: 34%; translate: -50% 0; animation: am-hover 5s ease-in-out infinite; }
.am-ufo--s1 { left: 6%; top: 18%; width: 12%; animation: am-hover 6.5s ease-in-out -2s infinite; }
.am-ufo--s2 { right: 10%; top: 8%; width: 7%; animation: am-hover 4.5s ease-in-out -1s infinite; }
.am-beam { left: 50%; top: 13%; height: 60%; width: auto; translate: -50% 0; transform-origin: 50% 0; mix-blend-mode: screen; animation: am-beam 3s ease-in-out infinite; }
.am-field { left: 0; bottom: -22%; width: 100%; height: 58%; object-fit: cover; object-position: 50% 0; }

@keyframes am-bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-18px) rotate(1.5deg); } }
@keyframes am-spin { to { transform: rotate(360deg); } }
@keyframes am-drift { from { transform: translateX(0); } to { transform: translateX(6vw); } }
@keyframes am-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-26px) rotate(3deg); } }
@keyframes am-hover { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes am-beam { 0%, 100% { opacity: .55; transform: scaleX(.9); } 50% { opacity: .95; transform: scaleX(1.05); } }

/* Textos de cada mundo: titular en minúsculas (como el original) con la tipografía de la marca */
.am-copy { position: absolute; top: 11%; left: var(--gutter); max-width: min(60%, 940px); }
.am-world--4 .am-copy { top: 24%; right: var(--gutter); max-width: none; text-align: center; }
.am-kicker {
	margin: 0 0 14px;
	font-family: var(--mb-mono);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .24em;
	text-transform: uppercase;
}
.am-kicker::before { content: '[ '; }
.am-kicker::after { content: ' ]'; }
.am-world--2 .am-kicker { margin: 18px 0 0; }
.am-page .am-title {
	margin: 0;
	font-family: var(--mb-display);
	font-weight: 900;
	font-size: clamp(64px, 9.4vw, 172px);
	line-height: .86;
	letter-spacing: -.05em;
	text-align: inherit;
	text-transform: none;
	color: inherit;
	text-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.am-text { max-width: 36ch; margin: 22px 0 0; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.5; }
.am-world--4 .am-text { margin-left: auto; margin-right: auto; }
.am-world--1 .am-text,
.am-world--3 .am-text { text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }

/* ---------- Portal, estrellas e intro ---------- */
.am-warp { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.am-intro { position: absolute; inset: 0; z-index: 6; display: none; background: #0a0a0a; pointer-events: none; }
.am-intro.is-on { display: block; }

/* ---------- Medidor de profundidad ---------- */
.am-gauge {
	position: absolute;
	top: 8%;
	right: var(--gutter);
	z-index: 7;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	padding: 14px 14px 12px;
	font-family: var(--mb-mono);
	color: #f5f5f0;
	background: rgba(10, 10, 10, .78);
	border: 3px solid #0a0a0a;
	box-shadow: 5px 5px 0 var(--accent);
}
.am-gauge__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.am-gauge__track { --track: min(34vh, 260px); position: relative; width: 210px; height: var(--track); margin: 6px 0; }
.am-gauge__track::before { content: ''; position: absolute; top: 0; bottom: 0; right: 17px; width: 3px; background: rgba(245, 245, 240, .22); }
.am-gauge__fill { position: absolute; top: 0; right: 17px; width: 3px; height: 100%; background: var(--accent); transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
.am-gauge__monkey { position: absolute; top: -18px; right: 0; width: 37px; height: 37px; image-rendering: pixelated; }
.ak-page .am-gauge__tick {
	position: absolute;
	right: 46px;
	width: auto;
	margin: -12px 0 0;
	padding: 4px 8px;
	font-family: var(--mb-mono);
	font-size: 11px;
	line-height: 1.3;
	letter-spacing: .06em;
	text-align: right;
	text-transform: uppercase;
	white-space: nowrap;
	color: rgba(245, 245, 240, .55);
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: color .2s linear;
}
.am-gauge__tick[data-go="0"] { top: 0; }
.am-gauge__tick[data-go="1"] { top: 33.333%; }
.am-gauge__tick[data-go="2"] { top: 66.667%; }
.am-gauge__tick[data-go="3"] { top: 100%; }
.am-gauge__tick b { color: var(--accent); font-weight: 700; }
.ak-page .am-gauge__tick:hover,
.am-gauge__tick.is-on { color: #f5f5f0; }
.am-gauge__tick.is-on span { background: #f5f5f0; color: #0a0a0a; padding: 0 4px; }
.am-gauge__read { font-family: var(--mb-display); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.01em; color: var(--accent); font-variant-numeric: tabular-nums; }
.am-gauge__hint { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* ---------- Pie del hero ---------- */
.am-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;
	/* a la derecha queda libre el lugar del botón flotante de WhatsApp */
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	background: #0a0a0a;
	border-top: 3px solid var(--accent);
}
.am-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); }
.am-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.am-ctrl { display: flex; align-items: center; gap: 10px; }
.am-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.am-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) {
	.am-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.am-foot .ak-actions { grid-column: 1 / -1; }
}

/* ---------- Pantallas bajas / medianas ---------- */
@media (max-height: 760px) {
	.am-gauge__track { --track: 24vh; }
	.am-gauge__hint { display: none; }
}
@media (max-width: 1100px) {
	.am-gauge { display: none; }
	.am-copy { max-width: 72%; }
}

/* ---------- Móvil ---------- */
@media (max-width: 700px) {
	.am-hero { padding-top: 60px; }
	.am-copy,
	.am-world--4 .am-copy { top: 5%; right: var(--gutter); max-width: none; }
	.am-kicker { font-size: 12px; margin-bottom: 8px; }
	.am-page .am-title { font-size: clamp(46px, 13.5vw, 84px); }
	.am-text { margin-top: 12px; font-size: 15px; }
	.am-car { top: 66%; height: 56%; }
	.am-planet { top: 58%; height: 36%; }
	.am-people { height: 22%; }
	.am-astro { left: 64%; top: 68%; height: 52%; }
	.am-birds { top: 40%; width: 60%; }
	.am-ufo--big { top: 34%; width: 62%; }
	.am-beam { top: 42%; height: 40%; }
	.am-ufo--s1 { top: 30%; width: 18%; }
	.am-ufo--s2 { top: 28%; width: 12%; }
	.am-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.am-ctrl { order: -1; }
	.am-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Sin JS o con movimiento reducido: los mundos se apilan, sin inmersión ---------- */
html:not(.js) .am-hero,
.am-hero.is-static { height: auto; }
html:not(.js) .am-stage,
.am-hero.is-static .am-stage { flex: none; }
html:not(.js) .am-world,
.am-hero.is-static .am-world { position: relative; inset: auto; height: 86vh; min-height: 560px; visibility: visible; }
html:not(.js) .am-warp,
html:not(.js) .am-gauge,
.am-hero.is-static .am-warp,
.am-hero.is-static .am-gauge { display: none; }
@media (prefers-reduced-motion: reduce) {
	.am-car, .am-planet, .am-birds, .am-astro, .am-ufo, .am-beam { animation: none; }
}
