/* ==================================================
   Wild Planet — estilos propios de la plantilla (hero: el planeta vivo)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   wl.js arma las escenas (paisaje + animal), dibuja el planeta de puntos en .wl-cv y abre cada paisaje con un
   círculo desde el punto del globo (--px, --py, --pr)
   ================================================== */

.wl-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: #050608; }

/* ---------- Escenas ---------- */
.wl-scenes { position: absolute; inset: 0; z-index: 0; }
.wl-scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.wl-scene.is-on, .wl-scene.is-in { visibility: visible; }
.wl-scene.is-in { z-index: 2; clip-path: circle(var(--pr, 0px) at var(--px, 80%) var(--py, 50%)); }
.wl-scene img { position: absolute; inset: -4%; width: 108%; height: 108%; max-width: none; object-fit: cover; will-change: transform; }
.wl-scenes::after { content: ''; position: absolute; inset: 0; z-index: 3; background: linear-gradient(0deg, rgba(5, 6, 8, .95) 0%, rgba(5, 6, 8, .35) 30%, rgba(5, 6, 8, .05) 55%, rgba(5, 6, 8, .5) 100%), radial-gradient(120% 90% at 50% 50%, transparent 50%, rgba(0, 0, 0, .55)); pointer-events: none; }
.wl-grain { position: absolute; inset: 0; z-index: 4; opacity: .12; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Nombre gigante (detrás del animal) ---------- */
.wl-name { position: absolute; z-index: 5; left: 0; right: 0; top: calc(68px + 9vh); display: flex; justify-content: center; pointer-events: none; }
.wl-name__in { --len: 6; display: block; font-family: 'Montserrat', 'Archivo', sans-serif; font-size: min(17vh, calc(92vw / (var(--len) * .78))); font-weight: 900; line-height: .9; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: #fff; text-shadow: 0 10px 60px rgba(0, 0, 0, .35); will-change: transform; }
.wl-ch { display: inline-block; will-change: transform, opacity, filter; }

/* ---------- Animales (delante del nombre) ---------- */
.wl-animals { position: absolute; z-index: 6; left: 0; right: 0; bottom: var(--foot-h); top: 68px; pointer-events: none; }
.wl-animal { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; width: auto; max-width: 86vw; height: var(--ah, 66%); object-fit: contain; object-position: 50% 100%; visibility: hidden; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); will-change: transform, opacity, filter; }
.wl-animal.is-on { visibility: visible; }

/* ---------- Información ---------- */
.wl-info { position: absolute; z-index: 7; left: var(--gutter); bottom: calc(var(--foot-h) + 26px); width: min(380px, 30vw); }
.wl-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 14px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.wl-logo { width: 130px; height: auto; }
.wl-text { margin: 0 0 16px; font-family: 'Manrope', sans-serif; font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
.wl-data { display: flex; gap: 22px; margin: 0 0 20px; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .25); }
.wl-data dt { margin: 0 0 4px; font-family: var(--mb-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.wl-data dd { margin: 0; font-family: var(--mb-mono); font-size: 14px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.ak-page .wl-get { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #0a0a0a; background: var(--accent); border: 2px solid #000; box-shadow: 6px 6px 0 var(--brand); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.ak-page .wl-get:hover, .ak-page .wl-get:focus-visible { color: #0a0a0a; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--brand); }

/* ---------- Planeta ---------- */
.wl-globe { position: absolute; z-index: 7; right: var(--gutter); bottom: calc(var(--foot-h) + 120px); --gw: min(280px, 21vw); display: flex; flex-direction: column; align-items: flex-end; }
.wl-list { margin-top: 12px !important; width: 420px; max-width: 34vw; }
.wl-cv { display: block; width: var(--gw); aspect-ratio: 1; cursor: grab; touch-action: none; }
.wl-hero.is-drag .wl-cv { cursor: grabbing; }
.wl-globe__hint { margin: 2px 0 0; font-family: var(--mb-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.wl-list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ak-page .wl-pill { min-height: 32px; margin: 0; padding: 0 10px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(5, 6, 8, .55); border: 1px solid rgba(255, 255, 255, .3); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s linear, color .2s linear, border-color .2s linear; }
.ak-page .wl-pill:hover { border-color: #fff; }
.ak-page .wl-pill[aria-current="true"] { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }
.ak-page .wl-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wl-status, .ak-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie ---------- */
.wl-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); }
.wl-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); }
.wl-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.wl-ctrl { display: flex; align-items: center; gap: 10px; }
.wl-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.wl-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) {
	.wl-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.wl-foot .ak-actions { grid-column: 1 / -1; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.wl-text { display: none; }
	.wl-globe { bottom: calc(var(--foot-h) + 100px); --gw: min(240px, 18vw); }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.wl-hero { height: auto; min-height: 0; }
	.wl-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 760px; max-height: 1000px; }
	.wl-info { right: var(--gutter); width: auto; }
	.wl-text { display: none; }
	.wl-globe { top: calc(68px + 14px); bottom: auto; --gw: 150px; }
	.wl-globe__hint, .wl-list { display: none; }
	.wl-name { top: calc(68px + 190px); }
	.wl-name__in { font-size: min(14vh, calc(92vw / (var(--len) * .78))); }
	.wl-animals { bottom: calc(var(--foot-h) + 200px); }
}
@media (max-width: 700px) {
	.wl-hero { padding-top: 60px; }
	.wl-hero::before { height: min(calc(100svh - 136px), 820px); min-height: 700px; }
	.wl-globe { top: calc(60px + 10px); --gw: 120px; }
	.wl-name { top: calc(60px + 150px); }
	.wl-animals { top: calc(60px + 90px); bottom: calc(var(--foot-h) + 230px); }
	.wl-data { gap: 16px; }
	.wl-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.wl-ctrl { order: -1; }
	.wl-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ak-page .wl-get, .ak-page .wl-pill { transition: none; }
}
