/* ==================================================
   Markus Phoenix — estilos propios de la plantilla (el portafolio original por láminas, elevado)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   Paleta del original: negro (#0f0f0f), turquesa (#219ca0 / #00d6d6) y blanco; tipografía Manrope
   mp.js fija el mazo de láminas con GSAP ScrollTrigger y anima la entrada de cada una
   ================================================== */

.mp-page { --ink: #0f0f0f; --teal: #219ca0; --cyan: #00d6d6; --paper: #f4f4f1; }

.mp-hero { position: relative; z-index: 1; color: #fff; background: var(--ink); }
.mp-deck { position: relative; height: 100vh; height: 100svh; min-height: 640px; padding-top: 68px; overflow: hidden; background: var(--ink); }
.mp-s { position: absolute; left: 0; right: 0; top: 68px; bottom: 0; overflow: hidden; background: var(--ink); visibility: hidden; will-change: transform; }
.mp-s.is-on, .mp-s.is-near { visibility: visible; }
.mp-s::after { content: ''; position: absolute; inset: 0; z-index: 20; background: #000; opacity: var(--shade, 0); pointer-events: none; }
.mp-in { position: relative; height: 100%; padding: clamp(28px, 5vh, 60px) clamp(80px, 9vw, 150px) clamp(24px, 4vh, 48px); }

/* máscaras: el contenido entra desde abajo */
.mp-m { display: block; overflow: hidden; }
.mp-r { display: block; will-change: transform; }
.mp-k { margin: 0 0 clamp(14px, 2.4vh, 26px); font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.mp-page h2.mp-k { line-height: 1.4; text-align: left; }

/* ---------- Capa fija: índice, marca, "desliza", contador y cursor ---------- */
.mp-dots { position: absolute; z-index: 30; left: clamp(20px, 3vw, 46px); top: 50%; display: flex; flex-direction: column; gap: 4px; transform: translateY(-50%); }
.ak-page .mp-dot { display: flex; align-items: center; gap: 12px; min-height: 26px; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: #fff; }
.mp-dot i { display: block; width: 8px; height: 8px; background: rgba(255, 255, 255, .35); border-radius: 50%; transition: transform .3s var(--ease), background .3s linear; }
.mp-dot span { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .45s var(--ease), opacity .3s linear; }
.ak-page .mp-dot:hover span, .ak-page .mp-dot:focus-visible span { max-width: 20ch; opacity: 1; padding: 3px 8px; background: rgba(15, 15, 15, .85); }
.mp-dot.is-on i { background: var(--cyan); transform: scale(1.6); box-shadow: 0 0 0 4px rgba(0, 214, 214, .2); }
.ak-page .mp-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mp-brand { position: absolute; z-index: 30; left: clamp(20px, 3vw, 46px); top: calc(68px + 18px); margin: 0; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.mp-cue { position: absolute; z-index: 30; right: clamp(20px, 3vw, 46px); top: 50%; display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .7); writing-mode: vertical-rl; transform: translateY(-50%); }
.mp-cue i { display: block; width: 1px; height: 70px; background: linear-gradient(var(--cyan), transparent); animation: mp-cue 2s ease-in-out infinite; }
@keyframes mp-cue { 0% { transform: scaleY(0); transform-origin: 50% 0; } 50% { transform: scaleY(1); transform-origin: 50% 0; } 51% { transform-origin: 50% 100%; } 100% { transform: scaleY(0); transform-origin: 50% 100%; } }
.mp-num { position: absolute; z-index: 30; right: clamp(20px, 3vw, 46px); bottom: 22px; margin: 0; font-family: var(--mb-mono); font-size: 13px; color: rgba(255, 255, 255, .6); }
.mp-num b { font-family: 'Manrope', sans-serif; font-size: 30px; font-weight: 800; color: #fff; }
.mp-cursor { position: absolute; z-index: 40; left: 0; top: 0; display: grid; place-items: center; width: 150px; height: 150px; margin: -75px 0 0 -75px; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-align: center; text-transform: uppercase; color: var(--ink); background: var(--cyan); border-radius: 50%; opacity: 0; transform: scale(0); transition: opacity .25s linear, transform .35s var(--ease); pointer-events: none; will-change: translate; }
.mp-deck.has-cursor .mp-cursor { opacity: 1; transform: scale(1); }

/* ---------- 0 · Portada ---------- */
.mp-intro { position: absolute; inset: 0; container-type: size; }
.mp-panel { position: absolute; left: 13cqw; right: 22cqw; top: 9cqh; bottom: 7cqh; padding: 7cqh 5cqw; overflow: hidden; background: linear-gradient(115deg, #1f8f96 0%, #2fb3b6 45%, #7fd3d9 100%); will-change: clip-path; }
.mp-panel::after { content: ''; position: absolute; right: -10%; bottom: -30%; width: 70%; height: 90%; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; }
.mp-chip { position: relative; z-index: 2; margin: 0 0 3cqh; font-family: 'Manrope', sans-serif; font-size: clamp(16px, 2.1cqw, 28px); font-weight: 600; color: var(--ink); }
.mp-page .mp-name { position: relative; z-index: 2; margin: 0; font-family: 'Manrope', sans-serif; font-size: min(17cqh, 11.5cqw); font-weight: 700; line-height: .94; letter-spacing: -.035em; text-align: left; text-transform: none; color: #fff; }
.ak-page .mp-inq { position: absolute; z-index: 2; left: 5cqw; bottom: 6cqh; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--ink); }
.ak-page .mp-inq:hover, .ak-page .mp-inq:focus-visible { color: #fff; border-color: #fff; }
.mp-model, .mp-shadow { position: absolute; z-index: 3; bottom: 0; height: 96cqh; width: auto; max-width: none; pointer-events: none; will-change: transform; }
.mp-model { left: 49cqw; filter: drop-shadow(-20px 10px 40px rgba(0, 0, 0, .45)); }
.mp-shadow { z-index: 2; left: 57cqw; opacity: .6; }
.mp-tag { position: absolute; z-index: 4; right: 6cqw; bottom: 7cqh; width: min(44cqw, 560px); padding: 26px 30px; background: var(--ink); }
.mp-tag__line { display: block; width: 186px; height: 2px; margin-bottom: 16px; background: var(--cyan); transform-origin: 0 50%; }
.mp-tag p { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(15px, 1.35cqw, 20px); line-height: 1.7; color: #fff; }

/* ---------- 1 · Sobre mí ---------- */
.mp-s--about .mp-in { display: grid; grid-template-rows: auto auto 1fr; }
.mp-page .mp-about__t { max-width: 25ch; margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(26px, min(3.1vw, 5vh), 46px); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; text-align: left; text-transform: none; color: #fff; }
.mp-ab { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 100%; align-items: end; gap: clamp(10px, 1.4vw, 22px); min-height: 0; margin: clamp(18px, 3vh, 36px) 0 0; padding: 0; list-style: none; }
.mp-ab li { height: var(--h); min-height: 0; overflow: hidden; }
.mp-ab img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .6s linear, transform .9s var(--ease); }
.mp-ab li:hover img { filter: none; transform: scale(1.05); }

/* ---------- 2 · Servicios ---------- */
.mp-s--serv .mp-in { display: flex; flex-direction: column; }
.mp-serv { display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 2vh, 22px); flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.mp-serv__row { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); }
.mp-serv__row > .mp-m { flex: 0 0 auto; }
.mp-serv__t { font-family: 'Manrope', sans-serif; font-size: clamp(54px, min(8vw, 12.5vh), 120px); font-weight: 500; line-height: 1.12; letter-spacing: -.03em; color: #fff; }
.mp-vid { position: relative; flex: 0 1 var(--w); height: clamp(70px, 13vh, 140px); overflow: hidden; background: #1b1b1b; transform-origin: 0 50%; transition: flex-basis .7s var(--ease), height .7s var(--ease); }
.mp-serv__row--rev .mp-vid { transform-origin: 100% 50%; }
.mp-vid video { width: 100%; height: 100%; object-fit: cover; }
.mp-serv__row:hover .mp-vid { flex-basis: calc(var(--w) + 12%); height: clamp(90px, 16vh, 170px); }
.ak-page .mp-next { align-self: flex-end; display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(8px, 2vh, 20px); font-family: 'Manrope', sans-serif; font-size: clamp(26px, 3vw, 45px); font-weight: 500; text-decoration: none; color: #fff; }
.mp-next__arrow { font-size: 1.3em; color: var(--cyan); transform: rotate(-45deg); transition: transform .35s var(--ease); }
.ak-page .mp-next:hover .mp-next__arrow, .ak-page .mp-next:focus-visible .mp-next__arrow { transform: rotate(0); }

/* ---------- 3·4·5 · Proyectos ---------- */
.mp-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; height: 100%; margin: 0; padding: 14px; list-style: none; }
.mp-work--3 { grid-template-columns: repeat(3, 1fr); }
.mp-card { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.ak-page .mp-card a { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; cursor: none; }
.mp-card__img { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.mp-card__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6) saturate(.9); transform: scale(1.06); transition: filter .6s linear, transform 1.2s var(--ease); }
.mp-card a:hover .mp-card__img img, .mp-card a:focus-visible .mp-card__img img { filter: brightness(.85) saturate(1.05); transform: scale(1.12); }
.mp-card__txt { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 0 8% clamp(22px, 5vh, 46px); text-align: center; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }
.mp-card__d { order: 3; max-width: 34ch; max-height: 0; overflow: hidden; margin-top: 0; font-family: 'Manrope', sans-serif; font-size: clamp(14px, 1.15vw, 17px); line-height: 1.5; color: rgba(255, 255, 255, .85); opacity: 0; transition: max-height .5s var(--ease), opacity .4s linear, margin .5s var(--ease); }
.mp-card a:hover .mp-card__d, .mp-card a:focus-visible .mp-card__d { max-height: 6em; margin-top: 12px; opacity: 1; }
.mp-card__t { order: 1; font-family: 'Manrope', sans-serif; font-size: clamp(30px, 3.6vw, 60px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.mp-work--3 .mp-card__t { font-size: clamp(26px, 2.8vw, 48px); }
.mp-card__k { order: 2; margin-top: 6px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .35em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ak-page .mp-card a:focus-visible { outline: 3px solid var(--cyan); outline-offset: -6px; }
.ak-page .mp-all { position: absolute; z-index: 5; right: clamp(80px, 8vw, 130px); top: 34px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 20px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--cyan); }
.ak-page .mp-all:hover, .ak-page .mp-all:focus-visible { color: var(--ink); background: #fff; }

/* ---------- 6 · Testimonios ---------- */
.mp-quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 50px); margin: 0 0 clamp(26px, 6vh, 70px); padding: 0; list-style: none; }
.mp-quotes blockquote { margin: 0 0 18px; padding: 0; border: 0; font-family: 'Manrope', sans-serif; font-size: clamp(17px, min(1.6vw, 2.8vh), 24px); font-weight: 500; line-height: 1.5; color: #fff; }
.mp-quotes p { margin: 0; line-height: 1.4; font-family: 'Manrope', sans-serif; font-size: clamp(16px, 1.4vw, 22px); color: rgba(255, 255, 255, .6); }
.mp-quotes b { font-weight: 800; color: var(--cyan); }
.mp-clients { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 40px; margin: 0; padding: 0; list-style: none; }
.mp-clients li { line-height: 1.25; font-family: 'Manrope', sans-serif; font-size: clamp(26px, 3vw, 44px); font-weight: 800; letter-spacing: -.02em; color: rgba(255, 255, 255, .35); transition: color .3s linear; }
.mp-clients li:hover { color: #fff; }

/* ---------- 7 · Contacto ---------- */
.mp-s--say .mp-in { display: flex; flex-direction: column; justify-content: center; }
.mp-s--contact .mp-in { display: flex; flex-direction: column; justify-content: center; }
.mp-page .mp-ct__t { max-width: 12ch; margin: 0 0 22px; font-family: 'Manrope', sans-serif; font-size: clamp(46px, min(6.4vw, 11vh), 100px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; text-align: left; text-transform: none; color: #fff; }
.mp-hl { color: var(--cyan); }
.mp-ct__p { max-width: 46ch; margin: 0 0 30px; font-family: 'Manrope', sans-serif; font-size: clamp(16px, 1.3vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .7); }
.mp-ct__line { display: block; width: 100%; height: 1px; margin-bottom: 30px; background: rgba(255, 255, 255, .25); transform-origin: 0 50%; }
.mp-ct__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; }
.ak-page .mp-get { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 30px; font-family: 'Manrope', sans-serif; font-size: 15px; 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(--teal); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.ak-page .mp-get:hover, .ak-page .mp-get:focus-visible { color: #0a0a0a; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--cyan); }
.mp-ct__c { margin: 0; font-family: 'Manrope', sans-serif; font-size: 15px; color: rgba(255, 255, 255, .6); }
.mp-ct__img { position: absolute; right: clamp(80px, 9vw, 150px); top: 50%; width: clamp(160px, 18vw, 280px); height: auto; border-radius: 50%; box-shadow: 0 0 0 10px rgba(0, 214, 214, .12), 0 30px 60px rgba(0, 0, 0, .5); transform: translateY(-60%); }

.mp-status, .ak-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pie ---------- */
.mp-foot { position: relative; z-index: 8; display: grid; grid-template-columns: minmax(260px, 1fr) auto; gap: 14px clamp(20px, 3vw, 44px); align-items: center; padding: 18px calc(var(--gutter) + 140px) 20px var(--gutter); background: rgba(10, 10, 10, .96); border-top: 3px solid var(--accent); }
.mp-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); }
.mp-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
	.mp-in { padding: 26px 60px 22px; }
	.mp-panel { left: 6cqw; right: 6cqw; top: 6cqh; bottom: 34cqh; }
	.mp-page .mp-name { font-size: min(13cqh, 15cqw); }
	.mp-model { left: auto; right: -4cqw; height: 74cqh; }
	.mp-shadow { display: none; }
	.mp-tag { left: 6cqw; right: 6cqw; bottom: 4cqh; width: auto; padding: 18px 20px; }
	.mp-quotes { grid-template-columns: 1fr; gap: 16px; }
	.mp-quotes li:nth-child(3) { display: none; }
	.mp-ct__img { display: none; }
	.mp-cue { display: none; }
}

/* ---------- Celular ---------- */
@media (max-width: 700px) {
	.mp-deck { padding-top: 60px; }
	.mp-s { top: 60px; }
	.mp-in { padding: 22px 18px 18px 40px; }
	.mp-dots { left: 10px; }
	.mp-dot span { display: none; }
	.mp-brand { display: none; }
	.mp-panel { padding: 5cqh 6cqw; }
	.mp-chip { font-size: 15px; }
	.ak-page .mp-inq { display: none; }
	.mp-model { height: 50cqh; right: -12cqw; }
	.mp-tag p { font-size: 14px; line-height: 1.55; }
	.mp-ab { grid-template-columns: repeat(2, 1fr); }
	.mp-ab li { height: auto; aspect-ratio: 4 / 3; }
	.mp-serv__row { flex-direction: column; align-items: flex-start; gap: 6px; }
	.mp-serv__row--rev { flex-direction: column-reverse; }
	.mp-vid { flex-basis: auto; width: 100%; height: 9vh; }
	.mp-serv__t { font-size: clamp(40px, 12vw, 60px); }
	.mp-work, .mp-work--3 { grid-template-columns: 1fr; padding: 10px 10px 10px 34px; gap: 10px; }
	.mp-card__t { font-size: 28px !important; }
	.mp-card__k { font-size: 11px; }
	.ak-page .mp-all { right: 14px; top: auto; bottom: 14px; }
	.mp-quotes li:nth-child(2) { display: none; }
	.mp-clients li { font-size: 22px; }
	.mp-num { bottom: 12px; }
	.mp-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.mp-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido (y respaldo sin JS): las láminas una debajo de otra ---------- */
.mp-hero.is-static .mp-deck { height: auto; min-height: 0; overflow: visible; }
.mp-hero.is-static .mp-s { position: relative; top: auto; height: calc(100svh - 68px); min-height: 600px; visibility: visible; }
.mp-hero.is-static .mp-dots, .mp-hero.is-static .mp-cue, .mp-hero.is-static .mp-num, .mp-hero.is-static .mp-brand { position: fixed; }
.mp-hero.is-static .mp-dots, .mp-hero.is-static .mp-cue, .mp-hero.is-static .mp-num, .mp-hero.is-static .mp-brand { display: none; }
.mp-hero.is-static .mp-card a { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
	.mp-cue i { animation: none; }
	.mp-dot i, .mp-dot span, .mp-ab img, .mp-vid, .mp-card__img img, .mp-card__d, .mp-next__arrow, .mp-clients li, .ak-page .mp-get, .mp-cursor { transition: none; }
}
