/* ==================================================
   Vimeo Gallery — 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
   Como el original: tira de miniaturas arriba (200 × 113, con el título encima) y el video en grande al centro
   ================================================== */

.vm-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: #000;
}

/* ---------- Tira de miniaturas ---------- */
.vm-nav { position: relative; z-index: 4; flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 16px var(--gutter); background: #1c1c1e; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.vm-thumbs { flex: 1 1 auto; display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; scroll-snap-type: x proximity; }
.vm-thumbs::-webkit-scrollbar { display: none; }
.ak-page .vm-thumb { position: relative; flex: 0 0 auto; width: 200px; height: 113px; margin: 0; padding: 0; overflow: hidden; text-align: left; background: #111; border: 0; cursor: pointer; scroll-snap-align: center; }
.vm-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vm-thumb__over { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .35) 60%, rgba(0, 0, 0, .55) 100%); transition: opacity .3s linear; }
.vm-thumb__t { position: absolute; left: 12px; right: 12px; top: 10px; display: -webkit-box; overflow: hidden; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; line-height: 1.25; color: #fff; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vm-thumb__d { position: absolute; left: 12px; bottom: 9px; font-family: var(--mb-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.vm-thumb::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.ak-page .vm-thumb:hover img { transform: scale(1.06); }
.ak-page .vm-thumb:hover .vm-thumb__over { opacity: .7; }
.vm-thumb[aria-current="true"] .vm-thumb__over { opacity: .45; }
.vm-thumb[aria-current="true"]::after { transform: scaleX(1); }
.ak-page .vm-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ak-page .vm-nav__arrow { flex: 0 0 auto; width: 44px; height: 113px; margin: 0; padding: 0; font-size: 30px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .15); cursor: pointer; }
.ak-page .vm-nav__arrow:hover, .ak-page .vm-nav__arrow:focus-visible { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }

/* ---------- El video ---------- */
.vm-stage { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; display: grid; place-items: center; padding: clamp(14px, 2.4vh, 26px) var(--gutter); }
.vm-screen { position: relative; width: min(1230px, 100%, calc((100svh - 68px - var(--nav-h, 146px) - var(--foot-h) - 52px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b0b; outline: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.vm-slides { position: absolute; inset: 0; }
.vm-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.vm-slide.is-on { visibility: visible; }
.vm-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vm-bgv { position: absolute; inset: 0; pointer-events: none; }
.vm-bgv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity 1.2s linear; }
.vm-bgv iframe.is-on { opacity: 1; }

/* Título, autor y fecha sobre el video */
.vm-cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 90px clamp(16px, 2.4vw, 32px) clamp(16px, 2.2vw, 28px); background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .7) 45%, rgba(0, 0, 0, .9)); }
.vm-cap__k { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--mb-mono); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.vm-cap__live { width: 8px; height: 8px; background: #ff3b3b; border-radius: 50%; box-shadow: 0 0 10px #ff3b3b; animation: vm-blink 1.2s steps(2) infinite; }
.vm-cap__n { color: var(--accent); }
.vm-page .vm-title { max-width: 26ch; margin: 0 0 6px; font-family: var(--mb-display); font-size: clamp(22px, 2.6vw, 40px); font-weight: 900; line-height: 1.02; letter-spacing: -.02em; text-align: left; text-transform: uppercase; color: #fff; text-wrap: balance; }
.vm-cap__meta { margin: 0 0 14px; font-family: var(--mb-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.ak-page .vm-play { display: inline-flex; align-items: center; gap: 10px; width: auto; min-height: 46px; margin: 0; padding: 0 20px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #0a0a0a; background: var(--accent); border: 2px solid #000; box-shadow: 5px 5px 0 var(--brand); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.ak-page .vm-play svg { width: 16px; height: 16px; fill: currentColor; }
.ak-page .vm-play:hover, .ak-page .vm-play:focus-visible { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--brand); }
@keyframes vm-blink { 50% { opacity: .2; } }

/* Flechas redondas (como las "uranus" del original): aparecen al pasar el cursor */
.ak-page .vm-arrow { position: absolute; z-index: 3; top: 50%; width: 54px; height: 54px; margin: -27px 0 0; padding: 0; font-size: 20px; color: #fff; background: rgba(0, 0, 0, .35); border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; cursor: pointer; opacity: 0; transition: opacity .25s linear, background .2s linear, color .2s linear; }
.vm-arrow--l { left: 18px; }
.vm-arrow--r { right: 18px; }
.vm-screen:hover .vm-arrow, .ak-page .vm-arrow:focus-visible { opacity: 1; }
.ak-page .vm-arrow:hover, .ak-page .vm-arrow:focus-visible { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }
@media (hover: none) { .ak-page .vm-arrow { opacity: 1; } }

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

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

/* ---------- Reproductor con sonido ---------- */
.vm-modal { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 20px; background: rgba(5, 5, 6, .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vm-modal[hidden] { display: none; }
.vm-modal__box { width: min(1100px, 100%); background: #0b0b0c; border: 3px solid #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 12px 12px 0 var(--brand); }
.vm-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 10px 10px 16px; border-bottom: 2px solid var(--accent); }
.vm-modal__t { margin: 0; overflow: hidden; font-family: var(--mb-display); font-size: clamp(15px, 1.6vw, 20px); font-weight: 900; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.ak-page .vm-modal__x { flex: 0 0 auto; width: 44px; min-width: 44px; height: 44px; margin: 0; padding: 0; font-size: 26px; line-height: 1; color: #0a0a0a; background: var(--accent); border: 2px solid #000; cursor: pointer; }
.ak-page .vm-modal__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vm-modal__frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.vm-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-modal__foot { margin: 0; padding: 10px 16px; text-align: right; }
.ak-page .vm-modal__link { font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

@media (max-width: 1180px) {
	.vm-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.vm-foot .ak-actions { grid-column: 1 / -1; }
}

/* ---------- Tablet y móvil ---------- */
@media (max-width: 1000px) {
	.vm-hero { height: auto; min-height: 0; }
	.vm-screen { width: 100%; }
	.vm-stage { padding: 16px var(--gutter) 22px; }
}
@media (max-width: 700px) {
	.vm-hero { padding-top: 60px; }
	.vm-nav { padding: 12px var(--gutter); }
	.ak-page .vm-thumb { width: 150px; height: 85px; }
	.vm-thumb__d { display: none; }
	.ak-page .vm-nav__arrow { display: none; }
	.vm-stage { padding: 0 0 18px; }
	.vm-cap { position: relative; padding: 16px var(--gutter) 4px; background: #000; }
	.vm-screen { aspect-ratio: auto; overflow: visible; box-shadow: none; }
	.vm-slides, .vm-bgv { position: relative; inset: auto; aspect-ratio: 16 / 9; }
	.vm-bgv { position: absolute; top: 0; left: 0; right: 0; }
	.ak-page .vm-arrow { top: 28vw; width: 44px; height: 44px; margin-top: -22px; }
	.vm-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.vm-ctrl { order: -1; }
	.vm-foot .ak-actions .ak-btn { flex: 1 1 auto; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.vm-thumb img, .vm-thumb__over, .vm-thumb::after, .ak-page .vm-play, .ak-page .vm-arrow, .vm-bgv iframe { transition: none; }
	.vm-cap__live { animation: none; }
}
