/* ==================================================
   Machine Intelligence — estilos propios de la plantilla (hero: mira como una máquina)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   mi.js dibuja todo en .mi-cv: red neuronal, robot, lente con visión artificial y cajas de detección
   ================================================== */

.mi-hero {
	--acc: #ff006e;
	--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: linear-gradient(160deg, #0d0016 0%, #0d0016 30%, #4f435e 100%);
	touch-action: pan-y;
}
.mi-cv { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; cursor: crosshair; }

/* ---------- Texto ---------- */
.mi-copy { position: absolute; z-index: 3; left: var(--gutter); top: calc(68px + 10vh); width: min(560px, 40vw); pointer-events: none; }
.mi-copy a, .mi-copy button { pointer-events: auto; }
.mi-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--acc); transition: color .5s linear; }
.mi-kicker i { width: 9px; height: 9px; background: var(--acc); box-shadow: 0 0 12px var(--acc); transform: rotate(45deg); animation: mi-blink 1.4s steps(2, start) infinite; transition: background-color .5s linear, box-shadow .5s linear; }
@keyframes mi-blink { 50% { opacity: .25; } }
.mi-page .mi-title { margin: 0 0 30px; font-family: 'Space Grotesk', sans-serif; font-size: clamp(50px, 5.6vw, 96px); font-weight: 700; line-height: .98; letter-spacing: -.04em; text-align: left; text-transform: none; color: #fff; }
.mi-l { display: block; white-space: nowrap; }
.mi-l2 { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); }
.mi-title .mi-g { color: var(--acc); -webkit-text-stroke: 0; }
.mi-acts { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.ak-page .mi-demo { display: inline-flex; align-items: center; gap: 14px; min-height: 54px; padding: 0 12px 0 28px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: #0d0016; background: #fff; border-radius: 999px; transition: background-color .25s linear, transform .2s var(--ease); }
.mi-demo__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc); transition: background-color .5s linear; }
.mi-demo__ico::after { content: ''; width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; }
.ak-page .mi-demo:hover, .ak-page .mi-demo:focus-visible { color: #0d0016; transform: translateY(-2px); }
.ak-page .mi-vision { width: auto; min-height: 54px; margin: 0; padding: 0 24px; font-family: 'Space Mono', monospace; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; cursor: pointer; }
.ak-page .mi-vision:hover { border-color: var(--acc); }
.ak-page .mi-vision[aria-pressed="true"] { color: #0d0016; background: var(--acc); border-color: var(--acc); }
.mi-vision__b, .mi-vision[aria-pressed="true"] .mi-vision__a { display: none; }
.mi-vision[aria-pressed="true"] .mi-vision__b { display: inline; }
.mi-info { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 520px; }
.mi-info p { margin: 0; }
.mi-info__l { margin-bottom: 6px !important; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.mi-info__t { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; line-height: 1.45; color: rgba(255, 255, 255, .92); }

/* ---------- Consola ---------- */
.mi-console { position: absolute; z-index: 3; right: var(--gutter); top: calc(68px + 22px); width: 290px; padding: 12px 14px; font-family: 'Space Mono', monospace; font-size: 11.5px; line-height: 1.55; color: rgba(255, 255, 255, .78); background: rgba(13, 0, 22, .82); border: 1px solid rgba(255, 255, 255, .14); border-left: 2px solid var(--acc); pointer-events: none; transition: border-color .5s linear; }
.mi-console__h { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 11px; letter-spacing: .14em; color: var(--acc); transition: color .5s linear; }
.mi-console__h span { color: rgba(255, 255, 255, .5); }
.mi-console__log { height: 108px; overflow: hidden; }
.mi-console__log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mi-console__log b { color: #fff; font-weight: 700; }
.mi-console__log em { font-style: normal; color: var(--acc); }

/* ---------- Robots ---------- */
.mi-nav { position: absolute; z-index: 4; right: var(--gutter); bottom: calc(var(--foot-h) + 26px); display: flex; gap: 8px; }
.ak-page .mi-dot { position: relative; display: grid; place-items: center; width: 52px; min-height: 52px; margin: 0; padding: 0; font-family: 'Space Mono', monospace; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .6); background: transparent; border: 0; cursor: pointer; }
.mi-dot::before { content: ''; position: absolute; inset: 6px; border: 1.5px solid rgba(255, 255, 255, .3); clip-path: polygon(50% 0, 100% 100%, 0 100%); background: transparent; transition: background-color .25s linear; }
.mi-dot b { position: relative; top: 7px; }
.mi-dot i { position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--c); transform: scaleX(0); transform-origin: 0 50%; }
.ak-page .mi-dot.is-on { color: #fff; }
.mi-dot.is-on::before { background: linear-gradient(160deg, var(--c), rgba(255, 255, 255, .1)); }
.mi-dot:hover::before { background: rgba(255, 255, 255, .12); }
.mi-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.mi-hint { position: absolute; z-index: 3; 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, .55); pointer-events: none; }
.mi-hint--touch { display: none; }
@media (hover: none) {
	.mi-hint--mouse { display: none; }
	.mi-hint--touch { display: inline; }
}
.mi-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie del hero ---------- */
.mi-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(9, 0, 15, .94);
	border-top: 3px solid var(--accent);
}
.mi-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); }
.mi-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.mi-ctrl { display: flex; align-items: center; gap: 10px; }
.mi-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.mi-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) {
	.mi-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.mi-foot .ak-actions { grid-column: 1 / -1; }
	.mi-info { display: none; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.mi-copy { top: calc(68px + 6vh); }
	.mi-page .mi-title { font-size: clamp(44px, 4.8vw, 78px); margin-bottom: 22px; }
	.mi-acts { margin-bottom: 24px; }
	.mi-info { display: none; }
	.mi-console__log { height: 72px; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.mi-hero { height: auto; min-height: 0; }
	.mi-hero::before { content: ''; display: block; flex: 0 0 auto; height: calc(100svh - 70px); min-height: 700px; max-height: 1020px; }
	.mi-copy { top: auto; bottom: calc(var(--foot-h) + 84px); right: var(--gutter); width: auto; }
	.mi-page .mi-title { font-size: clamp(40px, 10vw, 70px); margin-bottom: 18px; }
	.mi-acts { margin-bottom: 0; }
	.mi-console { top: calc(60px + 12px); right: 10px; width: 200px; font-size: 10px; padding: 8px 10px; }
	.mi-console__log { height: 62px; }
	.mi-hint { display: none; }
	.mi-nav { left: var(--gutter); right: auto; bottom: calc(var(--foot-h) + 16px); }
}
@media (max-width: 700px) {
	.mi-hero { padding-top: 60px; }
	.mi-hero::before { height: min(calc(100svh - 70px), 820px); min-height: 680px; }
	.mi-console { display: none; }
	.ak-page .mi-demo, .ak-page .mi-vision { min-height: 46px; }
	.mi-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.mi-ctrl { order: -1; }
	.mi-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.mi-kicker i { animation: none; }
}
