/* ==================================================
   Modern Portafolio — estilos propios de la plantilla (hero: el showreel en el visor de una cámara)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   mo.js: .mo-soft = el clip fuera de foco (lienzo pequeño escalado), .mo-sharp = el clip nítido recortado por el
   círculo de foco (--fx, --fy, --fr), .mo-iris = el diafragma del lente
   ================================================== */

.mo-hero {
	--red: #ff3b30;
	--fx: 60%;
	--fy: 45%;
	--fr: 260px;
	--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: #0a0a0a;
	touch-action: pan-y;
}
.mo-soft { position: absolute; left: 0; top: 0; z-index: 0; display: block; width: 100%; height: 100%; filter: blur(4px) saturate(1.08); transform: scale(1.02); }
.mo-sharp { position: absolute; inset: 0; z-index: 1; -webkit-mask-image: radial-gradient(circle var(--fr) at var(--fx) var(--fy), #000 45%, rgba(0, 0, 0, .6) 70%, transparent 100%); mask-image: radial-gradient(circle var(--fr) at var(--fx) var(--fy), #000 45%, rgba(0, 0, 0, .6) 70%, transparent 100%); }
.ak-page .mo-media { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.mo-iris { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; }
.mo-shade { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(5, 5, 5, .72) 0%, rgba(5, 5, 5, .25) 40%, rgba(5, 5, 5, 0) 60%), linear-gradient(0deg, rgba(5, 5, 5, .75) 0%, rgba(5, 5, 5, 0) 32%), radial-gradient(120% 100% at 50% 50%, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .55) 100%); }

/* ---------- Visor de cámara ---------- */
.mo-vf { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); top: calc(68px + 18px); bottom: calc(var(--foot-h) + 104px); pointer-events: none; font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.mo-vf__c { position: absolute; width: 34px; height: 34px; border: 2px solid rgba(255, 255, 255, .8); }
.mo-vf__c--tl { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.mo-vf__c--tr { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.mo-vf__c--bl { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.mo-vf__c--br { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.mo-rec { position: absolute; right: 48px; top: 8px; margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.mo-rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: mo-rec 1s steps(2, start) infinite; }
.mo-rec b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
@keyframes mo-rec { 50% { opacity: .15; } }
.mo-exp { position: absolute; right: 48px; bottom: 6px; margin: 0; display: flex; align-items: center; gap: 18px; }
.mo-exp b { color: #fff; }
.mo-batt { position: relative; width: 24px; height: 11px; border: 1.5px solid rgba(255, 255, 255, .8); }
.mo-batt::after { content: ''; position: absolute; right: -4px; top: 2px; width: 2px; height: 4px; background: rgba(255, 255, 255, .8); }
.mo-batt i { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 70%; background: #fff; }
.mo-focus { position: absolute; left: 0; top: 0; width: 64px; height: 44px; margin: -22px 0 0 -32px; }
.mo-focus i { position: absolute; inset: 0; border: 1.5px solid rgba(255, 255, 255, .9); }
.mo-focus i::before, .mo-focus i::after { content: ''; position: absolute; left: 50%; top: 50%; background: rgba(255, 255, 255, .9); }
.mo-focus i::before { width: 10px; height: 1.5px; margin: -.75px 0 0 -5px; }
.mo-focus i::after { width: 1.5px; height: 10px; margin: -5px 0 0 -.75px; }
.mo-focus__t { position: absolute; left: 0; top: -18px; font-size: 10px; font-weight: 700; color: #fff; }
.mo-focus.is-lock i { border-color: #34c759; }
.mo-focus.is-lock .mo-focus__t { color: #34c759; }

/* ---------- Texto ---------- */
.mo-copy { position: absolute; z-index: 4; left: calc(var(--gutter) + 28px); bottom: calc(var(--foot-h) + 132px); width: min(640px, 48vw); }
.mo-kicker { display: flex; align-items: baseline; gap: 6px; margin: 0 0 14px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.mo-kicker__n { font-size: 22px; font-weight: 700; letter-spacing: 0; color: #fff; }
.mo-kicker__l { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.mo-page .mo-title { margin: 0 0 18px; font-family: 'Manrope', sans-serif; font-size: clamp(60px, 7.4vw, 128px); font-weight: 800; line-height: .86; letter-spacing: -.05em; text-align: left; text-transform: lowercase; color: #fff; }
.mo-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.04em; }
.mo-line > span { display: inline-block; }
.mo-t2 { font-weight: 300; font-style: italic; letter-spacing: -.03em; padding-left: .5em; }
.mo-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 0 0 24px; font-family: 'Montserrat', sans-serif; font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.mo-meta i { font-style: normal; color: rgba(255, 255, 255, .4); }
.mo-meta__role { color: rgba(255, 255, 255, .6); }
.mo-meta__ind { color: #fff; font-weight: 700; }
.ak-page .mo-talk { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 28px; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: #0a0a0a; background: #fff; border-radius: 999px; transition: background-color .2s linear, transform .2s var(--ease); }
.ak-page .mo-talk:hover, .ak-page .mo-talk:focus-visible { color: #0a0a0a; background: var(--accent); transform: translateY(-2px); }

/* ---------- Línea de tiempo ---------- */
.mo-tl { position: absolute; z-index: 5; left: var(--gutter); right: var(--gutter); bottom: calc(var(--foot-h) + 22px); height: 62px; }
.mo-tl__track { position: absolute; inset: 0; display: flex; gap: 3px; }
.ak-page .mo-seg { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; height: 100%; margin: 0; padding: 0; background: #111 center / cover no-repeat; border: 0; cursor: pointer; overflow: hidden; filter: grayscale(.85) brightness(.55); transition: filter .25s linear; }
.mo-seg span { position: absolute; left: 6px; bottom: 4px; font-family: 'Space Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff; text-shadow: 0 1px 4px #000; white-space: nowrap; }
.mo-seg em { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(255, 255, 255, .14); transform: scaleX(0); transform-origin: 0 50%; font-style: normal; }
.mo-seg.is-video::after { content: ''; position: absolute; right: 6px; top: 6px; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent rgba(255, 255, 255, .85); }
.ak-page .mo-seg:hover { filter: grayscale(.2) brightness(.85); }
.ak-page .mo-seg.is-on { filter: none; box-shadow: inset 0 0 0 2px #fff; }
.mo-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mo-tl__head { position: absolute; top: -8px; bottom: -8px; left: 0; width: 2px; margin-left: -1px; background: var(--red); box-shadow: 0 0 8px var(--red); pointer-events: none; }
.mo-tl__head::before { content: ''; position: absolute; left: -5px; top: 0; width: 12px; height: 8px; background: var(--red); clip-path: polygon(0 0, 100% 0, 50% 100%); }

.mo-hint { position: absolute; z-index: 4; right: var(--gutter); top: calc(68px + 64px); margin: 0; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .6); text-shadow: 0 1px 4px #000; pointer-events: none; padding-right: 48px; }
.mo-hint--touch { display: none; }
@media (hover: none) {
	.mo-hint--mouse { display: none; }
	.mo-hint--touch { display: inline; }
}
.mo-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.mo-foot {
	position: relative;
	z-index: 6;
	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(8, 8, 8, .95);
	border-top: 3px solid var(--accent);
}
.mo-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); }
.mo-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.mo-ctrl { display: flex; align-items: center; gap: 10px; }
.mo-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.mo-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) {
	.mo-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.mo-foot .ak-actions { grid-column: 1 / -1; }
	.mo-seg span { display: none; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.mo-page .mo-title { font-size: clamp(54px, 6.4vw, 104px); }
	.mo-tl { height: 50px; }
	.mo-copy { bottom: calc(var(--foot-h) + 112px); }
	.mo-vf { bottom: calc(var(--foot-h) + 88px); }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.mo-hero { height: auto; min-height: 0; }
	.mo-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 640px; max-height: 1000px; }
	.mo-shade { background: linear-gradient(0deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .5) 45%, rgba(5, 5, 5, 0) 66%); }
	.mo-copy { left: var(--gutter); right: var(--gutter); width: auto; bottom: calc(var(--foot-h) + 96px); }
	.mo-page .mo-title { font-size: clamp(52px, 14vw, 96px); }
	.mo-vf { left: 12px; right: 12px; top: calc(60px + 12px); bottom: auto; height: 40%; }
	.mo-exp { display: none; }
	.mo-hint { display: none; }
	.mo-tl { height: 44px; bottom: calc(var(--foot-h) + 18px); }
}
@media (max-width: 700px) {
	.mo-hero { padding-top: 60px; }
	.mo-hero::before { height: min(calc(100svh - 70px), 800px); min-height: 640px; }
	.mo-rec { right: 40px; font-size: 11px; }
	.mo-tl__track { gap: 2px; }
	.mo-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.mo-ctrl { order: -1; }
	.mo-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.mo-rec i { animation: none; }
	.ak-page .mo-talk, .ak-page .mo-seg { transition: none; }
}
