/* ==================================================
   Portal Dimensional — estilos propios de la plantilla (hero: un portal de piedra hacia otros mundos)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   po.js dibuja en .po-gl (WebGL: el mundo actual, el próximo dentro del arco, la curvatura del espacio y el viaje
   warp) y en .po-fx (el polvo que cae al portal, las estelas del viaje y el polvo al abrirse); el arco es una imagen
   que po.js mueve y escala en sincronía con el lienzo
   ================================================== */

.po-hero {
	--gold: #f3cc13;
	--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: #07080a url("../../wp-content/uploads/revslider/travel-portal/canyon-final_225.jpeg") center / cover no-repeat;
	touch-action: pan-y;
}
.po-hero.is-live { background-image: none; }
.po-cv { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.po-gl { z-index: 0; }
.po-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(5, 6, 9, .74) 0%, rgba(5, 6, 9, .38) 30%, rgba(5, 6, 9, 0) 50%), linear-gradient(0deg, rgba(5, 6, 9, .55) 0%, rgba(5, 6, 9, 0) 26%); }
.po-fx { z-index: 2; }
.po-vids { position: absolute; left: 0; top: 0; width: 2px; height: 2px; overflow: hidden; opacity: 0; pointer-events: none; }
.po-vids video { width: 2px; height: 2px; }

/* ---------- El portal (po.js lo coloca y lo escala) ---------- */
.ak-page .po-gate { position: absolute; z-index: 3; left: 0; top: 0; display: block; width: 420px; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; cursor: pointer; transform-origin: 0 0; will-change: transform; -webkit-tap-highlight-color: transparent; }
.po-gate__img { display: block; width: 100%; height: auto; max-width: none; pointer-events: none; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .55)); }
.ak-page .po-gate:focus-visible { outline: 3px solid var(--gold); outline-offset: 8px; }
.po-hero:not(.is-ready) .po-gate { visibility: hidden; }
.po-tip { position: absolute; z-index: 6; left: 0; top: 0; display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #0c0c0c; background: var(--gold); box-shadow: 4px 4px 0 #0c0c0c; pointer-events: none; opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s ease, transform .25s ease; }
.po-tip.is-on { opacity: 1; transform: translate(-50%, 0); }
.po-tip__dot { width: 8px; height: 8px; border-radius: 50%; background: #0c0c0c; animation: po-blink 1s steps(2) infinite; }

/* ---------- Texto ---------- */
.po-copy { position: absolute; z-index: 6; left: var(--gutter); top: calc(68px + 10vh); width: min(540px, 38vw); pointer-events: none; }
.po-copy a { pointer-events: auto; }
.po-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.po-kicker__line { display: block; width: 46px; height: 2px; background: var(--gold); transform-origin: 0 50%; }
.po-page .po-title { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(44px, 5.4vw, 90px); font-weight: 800; line-height: .94; letter-spacing: -.045em; text-align: left; text-transform: none; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }
.po-title__l { display: block; overflow: hidden; padding-bottom: .06em; }
.po-title__l > span { display: inline-block; }
.po-title__l2 { color: var(--gold); }
.po-here { display: flex; align-items: center; gap: 14px; margin: 26px 0 18px; }
.po-here__n { flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; font-family: 'Space Mono', monospace; font-size: 14px; font-weight: 700; color: #0c0c0c; background: var(--gold); box-shadow: 4px 4px 0 rgba(0, 0, 0, .55); }
.po-here__txt { display: grid; gap: 2px; min-width: 0; }
.po-here__k { font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.po-here__name { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; color: #fff; white-space: nowrap; }
.po-here__place { font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .78); white-space: nowrap; }
.po-desc { max-width: 40ch; margin: 0 0 28px; font-family: 'Manrope', sans-serif; font-size: clamp(15px, 1.1vw, 17px); font-weight: 400; line-height: 1.7; color: rgba(255, 255, 255, .9); text-shadow: 0 2px 12px rgba(0, 0, 0, .7); }
.ak-page .po-get { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 30px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: #0c0c0c; background: #fff; border: 2px solid #0c0c0c; box-shadow: 6px 6px 0 var(--gold); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.ak-page .po-get:hover, .ak-page .po-get:focus-visible { color: #0c0c0c; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--gold); }

/* ---------- Panel del próximo destino ---------- */
.po-hud { position: absolute; z-index: 6; right: var(--gutter); top: calc(68px + (100% - 68px - var(--foot-h)) / 2); width: 236px; padding: 16px 16px 14px; color: #fff; background: rgba(7, 8, 11, .66); border: 1px solid rgba(255, 255, 255, .14); border-left: 3px solid var(--gold); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transform: translateY(-50%); }
.po-hud__k { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: 'Space Mono', monospace; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.po-hud__blink { width: 7px; height: 7px; border-radius: 50%; background: #3cf2a0; box-shadow: 0 0 8px #3cf2a0; animation: po-blink 1.2s steps(2) infinite; }
.po-hud__name { margin: 0; font-family: 'Manrope', sans-serif; font-size: 24px; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; overflow-wrap: anywhere; }
.po-hud__place { margin: 4px 0 12px; font-family: 'Space Mono', monospace; font-size: 12px; color: rgba(255, 255, 255, .72); }
.po-hud__data { margin: 0; }
.po-hud__data > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.po-hud__data dt { font-family: 'Space Mono', monospace; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.po-hud__data dd { display: flex; align-items: center; gap: 8px; margin: 0; font-family: 'Space Mono', monospace; font-size: 12px; white-space: nowrap; }
.po-hud__data > div:first-child { flex-direction: column; align-items: flex-start; gap: 3px; }
.po-hud__coords { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.po-hud__stab { font-weight: 700; }
.po-hud__bar { position: relative; display: block; width: 54px; height: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.po-hud__bar b { position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(.97); }
.po-hud.is-unstable .po-hud__stab { color: #ff5d5d; }
.po-hud.is-unstable .po-hud__bar b { background: #ff5d5d; }
.po-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.ak-page .po-card { position: relative; display: block; height: 58px; margin: 0; padding: 0; overflow: hidden; color: #fff; background: #111; border: 0; outline: 1px solid rgba(255, 255, 255, .2); outline-offset: 0; cursor: pointer; }
.po-card img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: saturate(.6) brightness(.7); transition: filter .2s ease, transform .3s ease; }
.po-card b { position: absolute; left: 4px; top: 3px; font-family: 'Space Mono', monospace; font-size: 10px; text-shadow: 0 1px 3px #000; }
.po-card__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ak-page .po-card:hover img, .ak-page .po-card:focus-visible img { filter: none; transform: scale(1.08); }
.ak-page .po-card.is-on { outline: 2px solid var(--gold); }
.ak-page .po-card.is-on img { filter: none; }
.ak-page .po-card.is-next { outline: 1px dashed var(--gold); }
.ak-page .po-card:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.po-hint { position: absolute; z-index: 6; left: var(--gutter); bottom: calc(var(--foot-h) + 22px); margin: 0; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); pointer-events: none; }
.po-hint--touch { display: none; }
@media (hover: none) {
	.po-hint--mouse { display: none; }
	.po-hint--touch { display: inline; }
}
.po-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@keyframes po-blink { 50% { opacity: .15; } }

/* ---------- Pie del hero ---------- */
.po-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, .95);
	border-top: 3px solid var(--accent);
}
.po-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); }
.po-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.po-ctrl { display: flex; align-items: center; gap: 10px; }
.po-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.po-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) {
	.po-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.po-foot .ak-actions { grid-column: 1 / -1; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.po-copy { top: calc(68px + 6vh); }
	.po-page .po-title { font-size: clamp(40px, 4.6vw, 72px); }
	.po-here { margin: 18px 0 12px; }
	.po-desc { margin-bottom: 18px; }
	.po-hud { padding: 12px 14px 10px; }
	.po-hud__name { font-size: 21px; }
	.ak-page .po-card { height: 46px; }
}
@media (max-width: 1240px) and (min-width: 1001px) {
	.po-hud { width: 206px; }
	.po-hud__name { font-size: 20px; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.po-hero { height: auto; min-height: 0; }
	.po-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 680px; max-height: 1000px; }
	.po-shade { background: linear-gradient(0deg, rgba(5, 6, 9, .92) 0%, rgba(5, 6, 9, .66) 40%, rgba(5, 6, 9, 0) 62%); }
	.po-copy { top: auto; bottom: calc(var(--foot-h) + 30px); right: var(--gutter); width: auto; }
	.po-kicker { margin-bottom: 12px; font-size: 11px; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
	.po-page .po-title { font-size: clamp(36px, 10vw, 64px); }
	.po-here { margin: 14px 0 10px; }
	.po-desc { margin-bottom: 18px; font-size: 14px; line-height: 1.6; }
	.ak-page .po-get { min-height: 48px; font-size: 13px; }
	.po-hint { display: none; }
	/* el panel pasa a ser una etiqueta arriba: «Próximo destino · nombre» */
	.po-hud { top: calc(68px + 12px); left: var(--gutter); right: var(--gutter); width: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px; transform: none; }
	.po-hud__k { margin: 0; font-size: 10px; }
	.po-hud__name { font-size: 16px; }
	.po-hud__place { margin: 0; font-size: 11px; }
	.po-hud__data, .po-cards { display: none; }
}
@media (max-width: 700px) {
	.po-hero { padding-top: 60px; }
	.po-hero::before { height: min(calc(100svh - 136px), 820px); min-height: 640px; }
	.po-hud { top: calc(60px + 10px); }
	.po-desc { display: none; }
	.po-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.po-ctrl { order: -1; }
	.po-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ak-page .po-get, .po-tip, .po-card img { transition: none; }
	.po-tip__dot, .po-hud__blink { animation: none; }
}
