/* ==================================================
   Vacilopoulus — estilos propios de la plantilla (hero: el banner original mejorado)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   Las capas van en unidades del escenario (cqh / cqw), en las posiciones del original
   ================================================== */

.vs-hero {
	--foot-h: 92px;
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 720px;
	padding-top: 68px;
	overflow: hidden;
	color: #fff;
	background: linear-gradient(#000, #151515);
}
.vs-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; container-type: size; }

/* ---------- Escena: los retratos y el círculo de color ---------- */
.vs-scene { position: absolute; inset: -2%; z-index: 0; will-change: transform; }
.vs-slides { position: absolute; inset: 0; perspective: 1800px; }
.vs-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; background: #0b0b0b; backface-visibility: hidden; }
.vs-slide.is-on { visibility: visible; }
.vs-slide img, .vs-slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.vs-slide video { opacity: 0; transition: opacity .6s linear; }
.vs-slide video.is-on { opacity: 1; }
.vs-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .05) 45%, rgba(0, 0, 0, .2)); pointer-events: none; }
.vs-color { --r: 0%; --cx: 46%; --cy: 46%; position: absolute; inset: 0; background-position: center; background-size: cover; clip-path: circle(var(--r) at var(--cx) var(--cy)); visibility: hidden; will-change: clip-path; }
.vs-color.is-on { visibility: visible; }
.vs-fx { position: absolute; inset: -2%; z-index: 1; pointer-events: none; perspective: 1800px; }
.vs-tile { position: absolute; background-repeat: no-repeat; will-change: transform, opacity; }

/* ---------- La frase (posiciones del original) ---------- */
.vs-copy { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.vs-copy a { pointer-events: auto; }
.vs-page .vs-title { margin: 0; font-weight: 400; text-transform: none; }
.vs-l1, .vs-l2 { position: absolute; font-family: 'Libre Caslon Display', 'Times New Roman', serif; font-weight: 400; line-height: 1; letter-spacing: -.035em; white-space: nowrap; will-change: transform, opacity, filter; }
.vs-l1 { --len: 18; right: 52.5cqw; top: 40cqh; font-size: min(13.4cqh, calc(47cqw / (var(--len) * .44))); color: #fff; text-align: right; translate: 0 -50%; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.vs-l2 { --len: 7; left: 64cqw; top: 55cqh; font-size: min(13.4cqh, calc(33cqw / (var(--len) * .47))); color: transparent; -webkit-text-stroke: 1.3px #fff; translate: 0 -50%; transform-origin: 0 50%; }
@supports not (-webkit-text-stroke: 1px #fff) { .vs-l2 { color: #fff; } }
.vs-credit { position: absolute; left: 0; right: 0; top: 77cqh; margin: 0; font-family: 'Libre Caslon Text', 'Times New Roman', serif; font-size: clamp(14px, 2cqh, 17px); font-weight: 700; text-align: center; color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); translate: 0 -50%; }
.ak-page .vs-more { position: absolute; left: 50%; top: 87cqh; display: inline-flex; align-items: center; justify-content: center; min-width: 180px; min-height: 44px; padding: 0 44px; font-family: 'Libre Caslon Text', 'Times New Roman', serif; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: #fff; background: rgba(10, 10, 10, .38); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); translate: -50% -50%; transition: background .2s linear, color .2s linear, border-color .2s linear; }
.ak-page .vs-more:hover, .ak-page .vs-more:focus-visible { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }
.ak-page .vs-more:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Miniaturas (abajo a la izquierda, como el original) ---------- */
.vs-thumbs { position: absolute; z-index: 4; left: 0; bottom: 0; display: flex; }
.ak-page .vs-thumb { position: relative; width: 120px; height: 64px; margin: 0; padding: 0; overflow: hidden; background: #111; border: 0; cursor: pointer; transform: translateY(32px); transition: transform .35s var(--ease); }
.vs-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .3s linear; }
.ak-page .vs-thumb:hover, .ak-page .vs-thumb:focus-visible { transform: translateY(16px); }
.ak-page .vs-thumb:hover img, .vs-thumb[aria-current="true"] img { opacity: 1; }
.ak-page .vs-thumb[aria-current="true"] { transform: translateY(0); }
.ak-page .vs-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.vs-thumb__bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

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

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

/* ---------- Tablet y móvil: la frase al centro, una parte debajo de la otra ---------- */
@media (max-width: 1000px) {
	.vs-hero { height: auto; min-height: 0; }
	.vs-stage { flex: 0 0 auto; height: min(calc(100svh - 70px), 860px); min-height: 600px; }
	.vs-l1 { right: auto; left: 50%; top: 38cqh; font-size: min(9cqh, calc(90cqw / (var(--len) * .44))); text-align: center; translate: -50% -50%; }
	.vs-l2 { left: 50%; top: 50cqh; font-size: min(12cqh, calc(88cqw / (var(--len) * .47))); translate: -50% -50%; transform-origin: 50% 50%; }
	.vs-credit { top: 72cqh; }
	.ak-page .vs-more { top: 82cqh; }
}
@media (max-width: 700px) {
	.vs-hero { padding-top: 60px; }
	.vs-stage { height: min(calc(100svh - 140px), 760px); min-height: 560px; }
	.ak-page .vs-thumb { width: 20cqw; height: 52px; transform: translateY(26px); }
	.ak-page .vs-thumb:hover, .ak-page .vs-thumb:focus-visible { transform: translateY(13px); }
	.vs-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.vs-ctrl { order: -1; }
	.vs-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.ak-page .vs-thumb, .vs-thumb img, .ak-page .vs-more, .vs-slide video { transition: none; }
}
