/* ==================================================
   Cyber Slider — estilos propios de la plantilla (hero: cristal de neón)
   Barra, botones, secciones comunes, similares, CTA y WhatsApp vienen de themes/_kit/am-kit.css
   ================================================== */

/* Colores (también en el lightbox, que cs.js mueve fuera del hero) */
.cs-hero, .cs-lb {
	--pink: #ff0066;
	--navy: #0c1725;
	--cyan: #00e5ff;
}
.cs-hero {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100svh;
	min-height: 700px;
	padding-top: 68px;
	overflow: hidden;
	color: #fff;
	background: var(--navy);
	touch-action: pan-y;
}

/* ---------- Slides (imagen o video a pantalla completa) ---------- */
.cs-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--navy); }
.cs-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.cs-slide.is-on { opacity: 1; visibility: visible; }
.cs-cover, .cs-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cs-video { opacity: 0; transition: opacity .6s linear; }
.cs-video.is-ready { opacity: 1; }
.cs-shade {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(12, 23, 37, .82) 0%, rgba(12, 23, 37, .35) 30%, rgba(12, 23, 37, .15) 50%, rgba(12, 23, 37, .7) 72%, rgba(12, 23, 37, .9) 100%),
		linear-gradient(to bottom, rgba(12, 23, 37, .55) 0%, rgba(12, 23, 37, 0) 25%, rgba(12, 23, 37, 0) 75%, rgba(12, 23, 37, .6) 100%);
	pointer-events: none;
}
.cs-glass { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.cs-light { position: absolute; inset: 0; z-index: 5; display: block; width: 100%; height: 100%; mix-blend-mode: screen; pointer-events: none; }

/* ---------- Contenido: pestañas a la izquierda, texto a la derecha (como el original) ---------- */
.cs-main {
	position: relative;
	z-index: 4;
	flex: 1 1 auto;
	min-height: 0;
	display: grid;
	grid-template-columns: minmax(250px, 300px) minmax(0, 1fr) minmax(320px, 40%);
	align-items: center;
	padding: clamp(20px, 4vh, 44px) var(--gutter);
}
.cs-tabs { grid-column: 1; display: flex; flex-direction: column; gap: 10px; }
.ak-page .cs-tab {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 8px 12px 8px 8px;
	overflow: hidden;
	font-family: 'Montserrat', sans-serif;
	text-align: left;
	color: rgba(255, 255, 255, .72);
	background: rgba(12, 23, 37, .55);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 0;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	cursor: pointer;
	transition: color .25s linear, background-color .25s linear, border-color .25s linear, transform .25s var(--ease);
}
.cs-tab__img { flex: 0 0 auto; width: 50px; height: 64px; overflow: hidden; }
.cs-tab__img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.7) brightness(.8); transition: filter .25s linear; }
.cs-tab__txt { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.cs-tab__txt b { font-family: var(--mb-mono); font-size: 11px; letter-spacing: .14em; color: var(--pink); }
.cs-tab__txt strong { font-size: 15px; font-weight: 800; line-height: 1.2; color: inherit; }
.cs-tab__txt small { font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .6); }
.cs-tab__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--pink); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; box-shadow: 0 0 12px var(--pink); }
.ak-page .cs-tab:hover { color: #fff; background: rgba(12, 23, 37, .75); border-color: rgba(255, 255, 255, .35); }
.ak-page .cs-tab.is-on { color: #fff; background: rgba(255, 0, 102, .16); border-color: var(--pink); transform: translateX(10px); box-shadow: -4px 0 0 var(--pink), 0 0 30px rgba(255, 0, 102, .25); }
.cs-tab.is-on .cs-tab__img img { filter: none; }

.cs-copy { grid-column: 3; padding-left: clamp(0px, 2vw, 30px); }
.cs-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.cs-kicker__n { padding: 3px 8px; color: #fff; background: var(--pink); box-shadow: 0 0 20px rgba(255, 0, 102, .6); }
.cs-page .cs-title {
	margin: 0 0 22px;
	font-family: 'Montserrat', var(--mb-display);
	font-size: clamp(34px, 3.6vw, 60px);
	font-weight: 800;
	line-height: 1.04;
	letter-spacing: -.025em;
	text-align: left;
	text-transform: none;
	color: #fff;
	text-shadow: 0 10px 30px rgba(12, 23, 37, .65);
}
.cs-title .cs-ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.cs-title .cs-ln > span { display: inline-block; }
.cs-text { max-width: 46ch; margin: 0 0 30px; font-family: 'Montserrat', sans-serif; font-size: clamp(15px, 1.2vw, 18px); font-weight: 500; line-height: 1.6; color: rgba(255, 255, 255, .78); }
.ak-page .cs-story {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	width: auto;
	min-height: 52px;
	margin: 0;
	padding: 0 26px 0 8px;
	font-family: 'Montserrat', sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	background: var(--pink);
	border: 0;
	border-radius: 0;
	box-shadow: 0 0 60px rgba(255, 0, 102, .55);
	cursor: pointer;
	transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s linear;
}
.cs-story__play { position: relative; flex: 0 0 auto; width: 38px; height: 38px; background: #fff; }
.cs-story__play::after { content: ''; position: absolute; left: 15px; top: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--pink); }
.ak-page .cs-story:hover, .ak-page .cs-story:focus-visible { color: #fff; background: #ff1f7a; transform: translateY(-2px); box-shadow: 0 0 80px rgba(255, 0, 102, .8); }

.cs-hint { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--foot-h, 90px) + 14px); margin: 0; font-family: var(--mb-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, .55); transform: translateX(-50%); pointer-events: none; }
.cs-hint--touch { display: none; }
@media (hover: none) {
	.cs-hint--mouse { display: none; }
	.cs-hint--touch { display: inline; }
}

/* ---------- Lightbox ---------- */
.cs-lb { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 70px 4vw 4vh; }
.cs-lb[hidden] { display: none; }
.cs-lb__back { position: absolute; inset: 0; background: rgba(6, 11, 19, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.cs-lb__frame { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; width: min(1180px, 100%); max-height: 100%; color: #fff; background: var(--navy); border: 2px solid var(--pink); box-shadow: 10px 10px 0 var(--pink), 0 0 80px rgba(255, 0, 102, .35); }
.cs-lb__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.cs-lb__video, .cs-lb__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.cs-lb__cap { display: flex; flex-direction: column; justify-content: center; padding: 28px; font-family: 'Montserrat', sans-serif; }
.cs-lb__k { margin: 0 0 10px; font-family: var(--mb-mono); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--pink); }
.cs-page .cs-lb__title { margin: 0 0 14px; font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: 800; line-height: 1.15; text-align: left; text-transform: none; color: #fff; }
.cs-lb__t { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .78); }
/* La X se dibuja con dos barras (no depende de la fuente) */
.ak-page .cs-lb__close { position: absolute; right: -2px; top: -48px; width: 44px; height: 44px; min-height: 0; margin: 0; padding: 0; font-size: 0; color: #fff; background: var(--pink); border: 0; border-radius: 0; cursor: pointer; }
.cs-lb__close::before, .cs-lb__close::after { content: ''; position: absolute; left: 11px; top: 20px; width: 22px; height: 3px; background: currentColor; transform: rotate(45deg); }
.cs-lb__close::after { transform: rotate(-45deg); }
.ak-page .cs-lb__close:hover, .ak-page .cs-lb__close:focus-visible { color: #0c1725; background: #fff; outline: 3px solid var(--accent); outline-offset: 2px; }
html.cs-lock { overflow: hidden; }

/* ---------- Pie del hero ---------- */
.cs-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;
	/* a la derecha queda libre el lugar del botón flotante de WhatsApp */
	padding: 14px calc(var(--gutter) + 140px) 16px var(--gutter);
	background: rgba(8, 15, 25, .9);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-top: 3px solid var(--accent);
}
.cs-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); }
.cs-foot__lead { max-width: 60ch; margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.5; color: rgba(245, 245, 240, .86); }
.cs-ctrl { display: flex; align-items: center; gap: 10px; }
.cs-count { margin: 0 6px 0 0; font-family: var(--mb-mono); font-size: 14px; color: rgba(245, 245, 240, .7); white-space: nowrap; }
.cs-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) {
	.cs-foot { grid-template-columns: minmax(0, 1fr) auto; }
	.cs-foot .ak-actions { grid-column: 1 / -1; }
	.cs-main { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(300px, 46%); }
	.cs-tab__txt small { display: none; }
}
/* Pantallas bajas */
@media (max-height: 820px) and (min-width: 1001px) {
	.cs-tab__img { height: 50px; }
	.cs-tab__txt small { display: none; }
	.cs-page .cs-title { font-size: clamp(32px, 3.2vw, 50px); margin-bottom: 16px; }
	.cs-text { margin-bottom: 22px; }
	.cs-hint { display: none; }
}

/* ---------- Tablet y móvil: texto arriba, pestañas en fila ---------- */
@media (max-width: 1000px) {
	.cs-hero { height: auto; min-height: 100svh; }
	.cs-main { grid-template-columns: 1fr; align-content: end; gap: 24px; padding-top: 30vh; }
	.cs-copy { grid-column: 1; grid-row: 1; padding-left: 0; }
	.cs-tabs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
	.cs-tabs::-webkit-scrollbar { display: none; }
	.ak-page .cs-tab { flex: 0 0 210px; }
	.ak-page .cs-tab.is-on { transform: none; box-shadow: 0 -3px 0 var(--pink) inset, 0 0 30px rgba(255, 0, 102, .25); }
	.cs-shade { background: linear-gradient(to bottom, rgba(12, 23, 37, .3) 0%, rgba(12, 23, 37, .25) 30%, rgba(12, 23, 37, .85) 62%, rgba(12, 23, 37, .95) 100%); }
	.cs-hint { display: none; }
	.cs-lb__frame { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
	.cs-hero { padding-top: 60px; }
	.cs-main { padding: 26vh var(--gutter) 24px; }
	.cs-page .cs-title { font-size: clamp(30px, 8.6vw, 44px); }
	.ak-page .cs-tab { flex-basis: 170px; }
	.cs-foot { grid-template-columns: 1fr; padding: 14px var(--gutter) 88px; }
	.cs-ctrl { order: -1; }
	.cs-foot .ak-actions .ak-btn { flex: 1 1 auto; }
	.cs-lb { padding: 64px 12px 12px; }
	.cs-lb__cap { padding: 18px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	.cs-video { transition: none; }
	.cs-light { display: none; }
}
