/* ==========================================================================
   Slider Hero SEO — frontend
   ========================================================================== */

.shs {
	--shs-a1: #3fe03a;
	--shs-a2: #f1e734;
	--shs-text: #ffffff;
	--shs-overlay: .55;
	--shs-hd: 100;
	--shs-hm: 100;
	--shs-min: 560px;
	--shs-interval: 6000ms;
	--shs-mq-dur: 30s;
	--shs-mq-h: 0px;
	--shs-pad-x: clamp(20px, 3.4vw, 64px);
	--shs-bg: #071114;
	--shs-ease: cubic-bezier(.7, 0, .2, 1);

	position: relative;
	width: 100%;
	height: calc(var(--shs-hd) * 1vh);
	min-height: var(--shs-min);
	overflow: hidden;
	isolation: isolate;
	background: var(--shs-bg);
	color: var(--shs-text);
	font-family: inherit;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
	touch-action: pan-y;
}
@supports (height: 1svh) {
	.shs { height: calc(var(--shs-hd) * 1svh); }
}
.shs *, .shs *::before, .shs *::after { box-sizing: border-box; }
.shs--font { font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.shs--has-marquee { --shs-mq-h: 68px; }

/* Ancho completo aunque el tema lo meta en un contenedor */
.shs.shs--bleed {
	--shs-vw: calc(100vw - var(--shs-sbw, 0px));
	position: relative;
	left: calc(50% - var(--shs-vw) / 2);
	width: var(--shs-vw);
	max-width: var(--shs-vw) !important;
	margin-left: 0;
	margin-right: 0;
}
.shs-block:has(.shs--bleed) { max-width: none; }
.shs-block.alignfull, .shs-block.alignwide { max-width: none; }

/* --------------------------------------------------------------------------
   Slides
   -------------------------------------------------------------------------- */
.shs__slides { position: absolute; inset: 0; }

.shs__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 0;
	overflow: hidden;
}
.shs__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.shs__slide.is-leaving { opacity: 1; visibility: visible; z-index: 1; }

/* Fundido */
.shs--fade .shs__slide.is-active.is-entering { animation: shs-fade-in 1s ease both; }

/* Deslizar */
.shs--slide .shs__slide.is-active.is-entering { animation: shs-in-next 1s var(--shs-ease) both; }
.shs--slide .shs__slide.is-leaving             { animation: shs-out-next 1s var(--shs-ease) both; }
.shs--slide.is-dir-prev .shs__slide.is-active.is-entering { animation-name: shs-in-prev; }
.shs--slide.is-dir-prev .shs__slide.is-leaving             { animation-name: shs-out-prev; }

@keyframes shs-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes shs-in-next  { from { transform: translate3d(100%, 0, 0); } to { transform: none; } }
@keyframes shs-out-next { from { transform: none; } to { transform: translate3d(-30%, 0, 0); } }
@keyframes shs-in-prev  { from { transform: translate3d(-100%, 0, 0); } to { transform: none; } }
@keyframes shs-out-prev { from { transform: none; } to { transform: translate3d(30%, 0, 0); } }

/* Imagen */
.shs__media, .shs .shs__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	max-width: none;
	border: 0;
	border-radius: 0;
}
.shs .shs__img { object-fit: cover; object-position: 50% 50%; display: block; }
.shs__media--empty { background: radial-gradient(120% 90% at 70% 40%, #12424a 0%, #071114 70%); }

.shs--kenburns .shs__slide.is-active .shs__img,
.shs--kenburns .shs__slide.is-leaving .shs__img {
	animation: shs-kb calc(var(--shs-interval) + 2s) ease-out both;
}
@keyframes shs-kb { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Capa oscura para legibilidad */
.shs__overlay {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(0deg, rgb(11 18 22 / 90%) 0%, rgba(4, 10, 13, 0) 38%);

}
.shs--align-center .shs__overlay {
	background:
		linear-gradient(0deg, rgba(4, 10, 13, .9) 0%, rgba(4, 10, 13, 0) 38%),
		rgba(4, 10, 13, var(--shs-overlay));
}

/* --------------------------------------------------------------------------
   Contenido
   -------------------------------------------------------------------------- */
.shs__inner {
	position: relative;
	z-index: 3;
	height: 100%;
	max-width: 1800px;
	margin: 0 auto;
	padding: 90px var(--shs-pad-x) calc(var(--shs-mq-h) + 70px);
	display: flex;
	align-items: center;
}
.shs--align-center .shs__inner { justify-content: center; text-align: center; }
.shs__content { max-width: 680px; }
.shs--align-center .shs__content { max-width: 900px; }

.shs .shs__badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 9px 13px;
	background: rgba(8, 12, 14, .82);
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 2px;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .07em;
	line-height: 1;
	text-transform: uppercase;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.shs .shs__badge i {
	width: 12px;
	height: 12px;
	background: var(--shs-a1);
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .3);
	flex: none;
}

.shs .shs__title {
	margin: 0 0 22px;
	padding: 0;
	color: inherit;
	font-family: inherit;
	font-size: clamp(36px, 4.3vw, 78px);
	font-style: italic;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -.012em;
	text-transform: uppercase;
	text-wrap: balance;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.shs .shs__title strong { color: var(--shs-a1); font-weight: 900; }

.shs .shs__desc {
	max-width: 440px;
	margin: 0 0 30px;
	color: inherit;
	font-size: clamp(15px, 1.05vw, 18px);
	line-height: 1.6;
	opacity: .86;
}
.shs--align-center .shs__desc { margin-left: auto; margin-right: auto; }
.shs .shs__desc a { color: var(--shs-a1); }

.shs__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
}
.shs--align-center .shs__actions { justify-content: center; }

/* Botón principal */
.shs .shs__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 7px 7px 7px 26px;
	border-radius: 12px;
	background: linear-gradient(90deg, var(--shs-a1) 0%, var(--shs-a2) 100%);
	box-shadow: 0 0 0 3px var(--shs-a2), 0 10px 30px -8px var(--shs-a1);
	color: #0a1907;
	font-size: 15px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.shs .shs__btn:hover,
.shs .shs__btn:focus-visible {
	transform: translateY(-2px);
	filter: saturate(1.15);
	box-shadow: 0 0 0 3px var(--shs-a2), 0 16px 40px -8px var(--shs-a1);
	color: #0a1907;
}
.shs__btn-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 9px;
	background: #0b1a0a;
	color: #fff;
	flex: none;
	overflow: hidden;
}
.shs__btn-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s ease; }
.shs .shs__btn:hover .shs__btn-icon svg { transform: translateX(3px); }

/* Botón de video */
.shs .shs__video-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	color: inherit;
	font: inherit;
	font-size: 15px;
	font-style: italic;
	font-weight: 800;
	letter-spacing: .02em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
}
.shs__video-icon {
	position: relative;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .55);
	background: rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.shs__video-icon::after {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 1.5px solid var(--shs-a1);
	opacity: 0;
	animation: shs-pulse 2.4s ease-out infinite;
}
.shs__video-icon svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.shs .shs__video-btn:hover .shs__video-icon,
.shs .shs__video-btn:focus-visible .shs__video-icon {
	background: var(--shs-a1);
	border-color: var(--shs-a1);
	color: #0a1907;
	transform: scale(1.06);
}
@keyframes shs-pulse {
	0%   { transform: scale(.9); opacity: .9; }
	100% { transform: scale(1.35); opacity: 0; }
}

/* Entrada escalonada del texto */
.shs__slide.is-active .shs__content > * {
	animation: shs-up .9s cubic-bezier(.2, .7, .2, 1) both;
}
.shs__slide.is-active .shs__content > :nth-child(1) { animation-delay: .25s; }
.shs__slide.is-active .shs__content > :nth-child(2) { animation-delay: .35s; }
.shs__slide.is-active .shs__content > :nth-child(3) { animation-delay: .45s; }
.shs__slide.is-active .shs__content > :nth-child(4) { animation-delay: .55s; }
@keyframes shs-up {
	from { opacity: 0; transform: translate3d(0, 34px, 0); }
	to   { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Contador + navegación
   -------------------------------------------------------------------------- */
.shs__ui {
	position: absolute;
	z-index: 5;
	right: var(--shs-pad-x);
	bottom: calc(var(--shs-mq-h) + 70px);
	display: flex;
	align-items: flex-end;
	gap: 38px;
	pointer-events: none;
}
.shs__ui > * { pointer-events: auto; }

.shs__counter {
	display: flex;
	align-items: baseline;
	font-style: italic;
	font-weight: 800;
	line-height: .78;
	letter-spacing: -.02em;
	user-select: none;
}
.shs__current {
	display: inline-block;
	font-size: clamp(52px, 5vw, 92px);
	font-variant-numeric: tabular-nums;
}
.shs__current.is-changing { animation: shs-count .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes shs-count {
	from { opacity: 0; transform: translate3d(0, 40%, 0); }
	to   { opacity: 1; transform: none; }
}
.shs__total { margin-left: 6px; font-size: 16px; font-weight: 700; opacity: .8; }

.shs__nav { display: flex; gap: 6px; }
.shs .shs__nav-btn {
	position: relative;
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin: 0;
	padding: 0;
	border-radius: 14px;
	border: 1.5px solid rgba(255, 255, 255, .38);
	background: rgba(8, 12, 14, .28);
	color: #fff;
	cursor: pointer;
	box-shadow: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	transition: background .25s ease, border-color .25s ease, transform .25s ease;
}
.shs .shs__nav-btn:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.shs .shs__nav-btn:active { transform: scale(.95); }
.shs__nav-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.shs__nav-btn .shs__ico-play { fill: currentColor; stroke: none; display: none; }
.shs.is-paused .shs__ico-pause { display: none; }
.shs.is-paused .shs__ico-play { display: block; }

/* Anillo de progreso alrededor del botón pausa */
.shs .shs__toggle { border-color: rgba(255, 255, 255, .22); }
.shs .shs__ring {
	position: absolute;
	inset: -1.5px;
	width: calc(100% + 3px);
	height: calc(100% + 3px);
	overflow: visible;
	pointer-events: none;
}
.shs__ring rect {
	fill: none;
	stroke: var(--shs-a1);
	stroke-width: 3;
	stroke-dasharray: 100 100;
	stroke-dashoffset: 100;
	filter: drop-shadow(0 0 4px var(--shs-a1));
}
.shs.is-running .shs__ring rect { animation: shs-ring var(--shs-interval) linear both; }
.shs.is-held .shs__ring rect { animation-play-state: paused; }
@keyframes shs-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   Marquesina inferior
   -------------------------------------------------------------------------- */
.shs__marquee {
	position: absolute;
	z-index: 4;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--shs-mq-h);
	display: flex;
	align-items: center;
	overflow: hidden;
	border-top: 1px solid rgba(255, 255, 255, .14);
	background: linear-gradient(0deg, rgba(4, 10, 13, .55), rgba(4, 10, 13, .2));
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.shs__marquee-track {
	display: flex;
	width: max-content;
	animation: shs-marquee var(--shs-mq-dur) linear infinite;
	will-change: transform;
}
.shs__marquee:hover .shs__marquee-track { animation-play-state: paused; }
.shs .shs__marquee-group {
	display: flex;
	align-items: center;
	flex: none;
	margin: 0;
	padding: 0;
	list-style: none;
}
.shs .shs__mq-item {
	margin: 0;
	padding: 0 20px;
	font-size: clamp(20px, 1.9vw, 34px);
	font-style: italic;
	font-weight: 800;
	letter-spacing: -.01em;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	list-style: none;
}
.shs .shs__mq-sep { display: grid; place-items: center; margin: 0; padding: 0; list-style: none; }
.shs__mq-sep svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .8; }
.shs__mq-sep svg .f { fill: currentColor; stroke: none; }
@keyframes shs-marquee { to { transform: translate3d(var(--shs-mq-shift, -50%), 0, 0); } }

/* --------------------------------------------------------------------------
   Modal de video
   -------------------------------------------------------------------------- */
.shs__modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	padding: 20px;
}
.shs__modal[hidden] { display: none; }
.shs__modal, .shs__modal * { box-sizing: border-box; }
.shs__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(3, 7, 9, .88);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	animation: shs-fade-in .3s ease both;
}
.shs__modal-box {
	position: relative;
	width: min(1100px, 100%);
	animation: shs-pop .4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes shs-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.shs__modal-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.shs__modal-frame.is-vertical { aspect-ratio: 9 / 16; max-height: 85vh; margin: 0 auto; width: auto; }
.shs__modal-frame iframe,
.shs__modal-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shs__modal .shs__modal-close {
	position: absolute;
	top: -54px;
	right: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .5);
	background: transparent;
	color: #fff;
	cursor: pointer;
}
.shs__modal .shs__modal-close:hover { background: #fff; color: #000; }
.shs__modal-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Foco visible accesible */
.shs a:focus-visible,
.shs button:focus-visible,
.shs__modal button:focus-visible {
	outline: 3px solid var(--shs-a2);
	outline-offset: 4px;
}

.shs--single .shs__ui { display: none; }

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Cinta de Texto integrada (módulo Cintas)
   -------------------------------------------------------------------------- */
.shs--has-cinta { --shs-mq-h: 110px; } /* valor inicial; JS lo ajusta al alto real */
.shs__cinta {
	position: absolute;
	z-index: 4;
	left: 0;
	right: 0;
	bottom: 0;
}
.shs__cinta .ctm,
.shs-cinta-below .ctm.ctm--bleed {
	left: 0;
	width: 100%;
	max-width: 100% !important;
}
.shs--bleed + .shs-cinta-below {
	--shs-vw: calc(100vw - var(--shs-sbw, 0px));
	position: relative;
	left: calc(50% - var(--shs-vw) / 2);
	width: var(--shs-vw);
	max-width: var(--shs-vw) !important;
}

@media (max-width: 1024px) {
	.shs__ui { gap: 24px; }
	.shs .shs__nav-btn { width: 54px; height: 54px; border-radius: 12px; }
	.shs__ring rect { rx: 12; ry: 12; }
}

/* --------------------------------------------------------------------------
   Móvil
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
	.shs {
		--shs-pad-x: 18px;
		height: calc(var(--shs-hm) * 1vh);
		min-height: 520px;
	}
	@supports (height: 1svh) {
		.shs { height: calc(var(--shs-hm) * 1svh); }
	}
	.shs--has-marquee { --shs-mq-h: 50px; }
	.shs--no-marquee-m { --shs-mq-h: 0px; }
	.shs--no-marquee-m .shs__marquee { display: none; }
	.shs--no-marquee-m .shs__cinta,
	.shs-cinta-below--no-m { display: none; }

	.shs .shs__img { object-position: var(--shs-pos-m, 50% 50%); }

	.shs__overlay,
	.shs--align-center .shs__overlay {
		background:
			linear-gradient(0deg,
				rgba(4, 10, 13, .92) 0%,
				rgba(4, 10, 13, calc(var(--shs-overlay) * .9)) 38%,
				rgba(4, 10, 13, calc(var(--shs-overlay) * .2)) 65%,
				rgba(4, 10, 13, calc(var(--shs-overlay) * .45)) 100%);
	}

	.shs__inner {
		align-items: flex-end;
		padding: 90px var(--shs-pad-x) calc(var(--shs-mq-h) + 26px);
	}
	.shs__content { max-width: calc(100% - 64px); }
	.shs--align-center .shs__content { max-width: 100%; }
	.shs--align-center .shs__inner { padding-bottom: calc(var(--shs-mq-h) + 96px); }

	.shs .shs__badge { margin-bottom: 14px; padding: 8px 11px; font-size: 11px; }
	.shs .shs__badge i { width: 10px; height: 10px; }
	.shs .shs__title { margin-bottom: 16px; font-size: clamp(27px, 8.2vw, 44px); line-height: 1.04; }
	.shs .shs__desc { font-size: 14.5px; margin-bottom: 20px; }
	.shs--hide-desc-m .shs__desc { display: none; }

	.shs__actions { gap: 12px 14px; }
	.shs .shs__btn { padding: 6px 6px 6px 18px; gap: 12px; font-size: 12.5px; letter-spacing: 0; border-radius: 11px; }
	.shs__btn-icon { width: 40px; height: 40px; border-radius: 8px; }
	.shs__video-icon { width: 50px; height: 50px; }
	.shs--video-icon-m .shs__video-text {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.shs__ui { right: var(--shs-pad-x); bottom: calc(var(--shs-mq-h) + 30px); }
	.shs--align-center .shs__ui { left: 0; right: 0; justify-content: center; bottom: calc(var(--shs-mq-h) + 30px); }
	.shs__nav { display: none; }
	.shs__current { font-size: 36px; }
	.shs__total { font-size: 13px; }

	.shs .shs__mq-item { font-size: 18px; padding: 0 12px; }
	.shs__mq-sep svg { width: 22px; height: 22px; }

	.shs__modal .shs__modal-close { top: -52px; }
}

/* --------------------------------------------------------------------------
   Movimiento reducido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	.shs *, .shs *::before, .shs *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
	.shs__marquee-track { animation: none !important; }
	.shs__ring rect { animation-duration: var(--shs-interval) !important; }
}

/* Aviso en el editor */
.shs-notice { padding: 16px; border: 1px dashed #c3c4c7; background: #f6f7f7; color: #50575e; font-size: 14px; }
