/* ==================================================
   Visual Design — estilos propios de la plantilla (hero: el portafolio original, mejorado)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   Paleta del original: blanco editorial, negro y turquesa (#60ffe2), con el amarillo y el morado de la marca
   ================================================== */

.vd-page { --vd-paper: #f4f1ea; --vd-ink: #0b0b0b; --vd-teal: #60ffe2; }

.vd-hero {
	--foot-h: 92px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 760px;
	padding-top: 68px;
	overflow: hidden;
	color: var(--vd-ink);
	background: var(--vd-paper);
}

/* ---------- Franja turquesa (marquesina) ---------- */
.vd-strip { flex: 0 0 auto; height: 32px; overflow: hidden; background: var(--vd-teal); border-bottom: 2px solid var(--vd-ink); }
.vd-strip__track { display: inline-flex; align-items: center; gap: 28px; height: 100%; padding-left: 28px; white-space: nowrap; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; animation: vd-marq 38s linear infinite; }
.vd-strip__track i { font-style: normal; color: var(--brand); }
@keyframes vd-marq { to { transform: translateX(-50%); } }

/* ---------- Cabecera: Mis trabajos · logo · Sobre mí ---------- */
.vd-head { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: clamp(12px, 2.6vh, 30px) var(--gutter) clamp(10px, 2.2vh, 26px); }
.ak-page .vd-head__link { justify-self: center; position: relative; padding: 6px 2px; font-family: 'Poppins', sans-serif; font-size: clamp(17px, 1.7vw, 25px); font-weight: 500; text-decoration: none; color: var(--vd-ink); }
.ak-page .vd-head__link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--vd-ink); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease); }
.ak-page .vd-head__link:hover::after, .ak-page .vd-head__link:focus-visible::after { transform: scaleX(1); transform-origin: 0 50%; }
.ak-page .vd-head__link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

.vd-page .vd-logo { position: relative; margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(54px, 9.6vh, 116px); font-weight: 900; line-height: .8; letter-spacing: -.035em; text-align: center; text-transform: uppercase; color: var(--vd-ink); cursor: default; user-select: none; }
.vd-logo__l { display: block; }
.vd-logo__lens { --lr: 0px; --lx: 50%; --ly: 50%; position: absolute; inset: 0; color: transparent; background-image: var(--art, none); background-position: center; background-size: 160% auto; -webkit-background-clip: text; background-clip: text; clip-path: circle(var(--lr) at var(--lx) var(--ly)); pointer-events: none; }
.vd-logo__script { position: absolute; z-index: 2; left: 50%; top: 50%; font-family: 'Splash', cursive; font-size: .8em; font-weight: 400; line-height: 1; letter-spacing: 0; text-transform: none; white-space: nowrap; color: #fff; -webkit-text-stroke: .05em var(--vd-ink); paint-order: stroke fill; transform: translate(-50%, -46%) rotate(-7deg); pointer-events: none; }

/* ---------- Panorámica ---------- */
.vd-pano { position: relative; flex: 1 1 auto; min-height: 220px; margin: 0 var(--gutter); overflow: hidden; background: #15131a; touch-action: pan-y; }
.vd-pano__frame { position: absolute; inset: 0; }
.vd-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.vd-slide.is-on { visibility: visible; }
.vd-slide img { position: absolute; top: 0; left: -9%; width: 118%; height: 100%; max-width: none; object-fit: cover; will-change: transform; }
@media (hover: hover) and (pointer: fine) { .vd-pano.has-cursor { cursor: none; } }
.vd-pano.is-drag { cursor: grabbing; }
.vd-cursor { position: absolute; z-index: 3; left: 0; top: 0; display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--vd-ink); border-radius: 50%; opacity: 0; transform: scale(.4); pointer-events: none; transition: opacity .25s linear, transform .3s var(--ease); will-change: translate; }
.vd-pano.has-cursor .vd-cursor { opacity: 1; transform: scale(1); }
.vd-pano.is-drag .vd-cursor { transform: scale(.8); background: var(--brand); }
.ak-page .vd-pano__arrow { position: absolute; z-index: 4; bottom: 14px; width: 46px; height: 46px; margin: 0; padding: 0; font-size: 18px; color: var(--vd-ink); background: #fff; border: 2px solid var(--vd-ink); cursor: pointer; transition: background .15s linear; }
.vd-pano__arrow--l { right: 70px; }
.vd-pano__arrow--r { right: 14px; }
.ak-page .vd-pano__arrow:hover, .ak-page .vd-pano__arrow:focus-visible { background: var(--accent); }
.ak-page .vd-pano__arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Título de la obra y progreso ---------- */
.vd-cap { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding: 14px var(--gutter) 16px; }
.vd-cap__t { margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; line-height: 1.25; }
.vd-cap__k { margin: 2px 0 0; font-family: 'Poppins', sans-serif; font-size: 13px; color: rgba(11, 11, 11, .6); }
.vd-cap__nav { display: flex; align-items: center; gap: 14px; }
.vd-cap__n { margin: 0; font-family: var(--mb-mono); font-size: 13px; white-space: nowrap; }
.vd-cap__i { font-size: 18px; }
.vd-cap__bar { display: block; width: clamp(120px, 16vw, 240px); height: 5px; background: rgba(11, 11, 11, .12); }
.vd-cap__bar i { display: block; height: 100%; background: var(--vd-ink); transform: scaleX(0); transform-origin: 0 50%; }

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

/* ---------- Pie del hero ---------- */
.vd-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);
	color: #fff;
	background: rgba(10, 10, 10, .96);
	border-top: 3px solid var(--accent);
}
.vd-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); }
.vd-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.vd-ctrl { display: flex; align-items: center; gap: 10px; }
.vd-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.vd-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); }

/* =====================================================================
   Mis trabajos
   ===================================================================== */
.vd-works { position: relative; z-index: 1; padding: clamp(70px, 9vw, 140px) var(--gutter) clamp(60px, 8vw, 120px); color: var(--vd-ink); background: var(--vd-paper); overflow: hidden; }
.vd-label { margin: 0 0 12px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.vd-works__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 24px; margin-bottom: clamp(30px, 5vw, 70px); padding-bottom: 18px; border-bottom: 3px solid var(--vd-ink); }
.vd-works__head .vd-label { flex: 1 1 100%; }
.vd-page .vd-works__t { margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(48px, 8.5vw, 136px); font-weight: 900; line-height: .86; letter-spacing: -.04em; text-align: left; text-transform: uppercase; color: var(--vd-ink); }
.vd-works__n { margin: 0 0 .4em auto; font-family: var(--mb-mono); font-size: clamp(16px, 1.6vw, 22px); font-weight: 700; }

.vd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px) clamp(20px, 3.4vw, 56px); margin: 0; padding: 0 0 clamp(80px, 10vw, 160px); list-style: none; }
.vd-work:nth-child(even) { transform: translateY(clamp(60px, 9vw, 150px)); }
.ak-page .vd-work__btn { position: relative; display: block; width: 100%; margin: 0; padding: 0; overflow: hidden; aspect-ratio: var(--ar, 1); background: #ddd8cc; border: 0; cursor: pointer; }
.vd-work__btn img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; transition: scale .9s var(--ease), filter .5s linear; will-change: transform; }
.ak-page .vd-work__btn:hover img, .ak-page .vd-work__btn:focus-visible img { scale: 1.06; }
.vd-work__view { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 96px; height: 96px; margin: -48px 0 0 -48px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--vd-ink); background: var(--vd-teal); border-radius: 50%; opacity: 0; transform: scale(.5); transition: opacity .3s linear, transform .4s var(--ease); pointer-events: none; }
.ak-page .vd-work__btn:hover .vd-work__view, .ak-page .vd-work__btn:focus-visible .vd-work__view { opacity: 1; transform: scale(1); }
.ak-page .vd-work__btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.vd-work__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.vd-work__t { margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(16px, 1.45vw, 22px); font-weight: 600; line-height: 1.25; }
.vd-work__k { margin: 3px 0 0; font-family: var(--mb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(11, 11, 11, .6); }
.vd-work__no { font-family: var(--mb-mono); font-size: 12px; font-weight: 700; color: var(--brand); }

/* Marquesina gigante */
.vd-marquee { margin: 0 calc(var(--gutter) * -1); padding: clamp(20px, 3vw, 40px) 0; overflow: hidden; border-top: 3px solid var(--vd-ink); border-bottom: 3px solid var(--vd-ink); }
.vd-marquee__row { overflow: hidden; white-space: nowrap; }
.vd-marquee__track { display: inline-flex; align-items: center; gap: .35em; font-family: 'Poppins', sans-serif; font-size: clamp(60px, 10.5vw, 180px); font-weight: 900; line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase; will-change: transform; }
.vd-marquee__track i { font-size: .45em; font-style: normal; color: var(--brand); -webkit-text-stroke: 0; }
.vd-marquee__row--a .vd-marquee__track { color: transparent; -webkit-text-stroke: 2px var(--vd-ink); }
.vd-marquee__row--b .vd-marquee__track { color: var(--vd-ink); }
.vd-marquee__row--b .vd-marquee__track i { color: var(--vd-teal); -webkit-text-stroke: 2px var(--vd-ink); }

/* Sobre mí */
.vd-about { display: grid; grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: clamp(60px, 8vw, 120px); }
.vd-about__pic { width: clamp(150px, 16vw, 240px); margin: 0; aspect-ratio: 1; overflow: hidden; border: 3px solid var(--vd-ink); border-radius: 50%; box-shadow: 10px 10px 0 var(--vd-teal); }
.vd-about__pic img { width: 100%; height: 100%; object-fit: cover; }
.vd-page .vd-about__name { margin: 0 0 6px; font-family: 'Poppins', sans-serif; font-size: clamp(28px, 3vw, 46px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-align: left; text-transform: uppercase; color: var(--vd-ink); }
.vd-about__role { margin: 0 0 14px; font-family: var(--mb-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(11, 11, 11, .65); }
.vd-about__bio { max-width: 52ch; margin: 0 0 18px; font-family: 'Manrope', sans-serif; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; }
.vd-about__social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.ak-page .vd-about__social a { display: inline-flex; min-height: 32px; align-items: center; font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--vd-ink); border-bottom: 2px solid var(--vd-teal); }
.ak-page .vd-about__social a:hover, .ak-page .vd-about__social a:focus-visible { color: var(--brand); border-color: var(--brand); }
.vd-about__cta { display: grid; justify-items: start; gap: 22px; }
.vd-about__big { margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(48px, 6.4vw, 104px); font-weight: 900; line-height: .82; letter-spacing: -.04em; text-transform: uppercase; }
.vd-about__big2 { display: block; margin-left: .3em; font-family: 'Splash', cursive; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--brand); }
.ak-page .vd-get { display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 0 26px; 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 .vd-get:hover, .ak-page .vd-get:focus-visible { color: #0a0a0a; transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--brand); }

/* ---------- Visor ---------- */
.vd-lb { position: fixed; inset: 0; z-index: 100000; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 70px 80px 24px; color: #fff; background: rgba(8, 8, 9, .95); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vd-lb[hidden] { display: none; }
.vd-lb__fig { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; margin: 0; }
.vd-lb__img { max-width: 100%; max-height: calc(100vh - 190px); object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.vd-lb__info { justify-self: start; display: flex; align-items: baseline; gap: 16px; padding-top: 16px; }
.vd-lb__n { margin: 0; font-family: var(--mb-mono); font-size: 13px; color: var(--vd-teal); }
.vd-lb__t { margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(17px, 1.8vw, 24px); font-weight: 600; }
.vd-lb__k { margin: 0; font-family: var(--mb-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.ak-page .vd-lb__x, .ak-page .vd-lb__nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0; font-size: 22px; color: #0a0a0a; background: var(--accent); border: 2px solid #000; cursor: pointer; }
.vd-lb__x { top: 16px; right: 16px; font-size: 28px !important; }
.vd-lb__nav { top: 50%; margin-top: -24px !important; }
.vd-lb__nav--l { left: 16px; }
.vd-lb__nav--r { right: 16px; }
.ak-page .vd-lb__x:focus-visible, .ak-page .vd-lb__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (max-width: 1180px) {
	.vd-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.vd-foot .ak-actions { grid-column: 1 / -1; }
	.vd-about { grid-template-columns: auto minmax(0, 1fr); }
	.vd-about__cta { grid-column: 1 / -1; grid-template-columns: auto auto; align-items: center; justify-content: space-between; width: 100%; }
}
@media (max-height: 820px) and (min-width: 1001px) {
	.vd-cap { padding-top: 10px; padding-bottom: 10px; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.vd-hero { height: auto; min-height: 0; }
	.vd-pano { flex: 0 0 auto; height: min(52svh, 480px); min-height: 280px; }
	.vd-page .vd-logo { font-size: clamp(48px, 11vw, 100px); }
}
@media (max-width: 700px) {
	.vd-hero { padding-top: 60px; }
	.vd-head { grid-template-columns: 1fr 1fr; padding-top: 18px; }
	.vd-logo { grid-column: 1 / -1; order: -1; margin-bottom: 8px !important; }
	.vd-page .vd-logo { font-size: clamp(52px, 17vw, 96px); }
	.vd-pano { height: min(46svh, 380px); margin: 0; }
	.ak-page .vd-pano__arrow { width: 42px; height: 42px; }
	.vd-cap { flex-direction: column; align-items: stretch; }
	.vd-cap__nav { justify-content: space-between; }
	.vd-cap__bar { flex: 1 1 auto; }
	.vd-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.vd-ctrl { order: -1; }
	.vd-foot .ak-actions .ak-btn { flex: 1 1 auto; }
	.vd-grid { grid-template-columns: 1fr; padding-bottom: 60px; }
	.vd-work:nth-child(even) { transform: none; }
	.vd-about { grid-template-columns: 1fr; justify-items: start; }
	.vd-about__cta { grid-template-columns: 1fr; }
	.vd-lb { padding: 64px 12px 18px; }
	.vd-lb__nav { top: auto; bottom: 14px; margin-top: 0 !important; }
	.vd-lb__info { flex-wrap: wrap; padding-right: 120px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.vd-strip__track { animation: none; }
	.ak-page .vd-head__link::after, .vd-work__btn img, .vd-work__view, .vd-cursor, .ak-page .vd-get { transition: none; }
}
