/* ============================================================
   Hero Slider — slider.css
   Tipografía: var(--font) del tema (Rubik ya cargada)
   Versión optimizada para Mobile
   ============================================================ */

.hs-slider {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: var(--hs-ratio, 16 / 7) !important;
	height: auto;
	background: #111;
}
	.cyg--slide-home .hs-slider {
	min-height: 300px;
}
@media (max-width: 800px) {
	.hs-slider {
		aspect-ratio: var(--hs-ratio-m, 3 / 4) !important;
	}
}

/* ── Track (lista de slides) ───────────────────────────────── */
.hs-track {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	inset: 0;
}

/* ── Cada slide ────────────────────────────────────────────── */
.hs-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity var(--hs-fade, 600ms) ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hs-slide.hs-active {
	opacity: 1;
	z-index: 1;
}

/* ── Imagen de fondo ──────────────────────────────────────── */
.hs-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	background: #222;
}

/* ── Overlay oscuro ────────────────────────────────────────── */
.hs-overlay {
	position: absolute;
	inset: 0;
	background: var(--hs-overlay, rgba(0, 0, 0, .45));
	z-index: 1;
}

/* ── Contenido centrado ─────────────────────────────────────── */
.hs-content {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 1.5rem 1.25rem;
	max-width: 1300px;
	width: 100%;
}

/* ── Título ──────────────────────────────────────────────── */
.hs-title {
	font-family: var(--font);
	font-weight: 900;
	font-size: var(--size-slide-tit) !important;
	line-height: 1.1;
	color: #FDD300 !important;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 0 0 20px 0;
	text-shadow: 0 2px 6px rgba(0,0,0,.35);
}

/* ── Subtítulo ──────────────────────────────────────────────── */
.hs-subtitle {
	font-family: var(--font);
	font-weight: 700;
	font-size: var(--size-slide-tit) !important;
	line-height: 1.1;
	color: #fff;
	margin: 0 0 20px 0;
	text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* ── Descripción ──────────────────────────────────────────── */
.hs-desc {
	font-family: var(--font);
	font-weight: 400;
	font-size: var(--size-slide-subtit) !important;
	line-height: 1.3;
	color: #fff;
	margin: 0 0 20px 0;
	text-shadow: 0 1px 3px rgba(0,0,0,.4);
	opacity: 1;
}

/* ── Botón CTA ──────────────────────────────────────────────── */
.hs-btn {
	display: inline-block;
	font-family: var(--font);
	font-weight: 400;
	font-size: clamp(1.25rem, 1.6vw, 1.45rem);
	color: #111;
	background: var(--hs-accent, #f5c400);
	border: 2px solid var(--hs-accent, #f5c400);
	padding: .65em 1.8em;
	text-decoration: none;
	letter-spacing: .03em;
	transition: background .2s, color .2s, border-color .2s;
	border-radius: 0;
	cursor: pointer;
	min-height: inherit;
	line-height: 1.3;
}

.hs-btn:hover,
.hs-btn:focus-visible {
	background: transparent;
	color: var(--hs-accent, #f5c400);
	outline: none;
}

/* ── Puntos de navegación ───────────────────────────────────── */
.hs-dots {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 8px;
}

.hs-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: rgba(255,255,255,.45);
	cursor: pointer;
	transition: background .2s, transform .2s;
	position: relative;
}

.hs-dot--active {
	background: var(--hs-accent, #f5c400);
	transform: scale(1.25);
}

.hs-dot::before {
	content: '';
	display: block;
	position: absolute;
	inset: -8px;
}

/* ── Modo ratio="auto" ─────────────────────────────────────── */
.hs-slider.hs-auto {
	aspect-ratio: auto !important;
}
.hs-auto .hs-track {
	position: relative;
	inset: auto;
	display: grid;
}
.hs-auto .hs-slide {
	position: relative;
	inset: auto;
	grid-area: 1 / 1;
	display: block;
}
.hs-auto .hs-bg {
	position: relative;
	inset: auto;
	height: auto;
}
.hs-auto .hs-content {
	position: absolute;
	inset: 0;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* ── Flechas prev / next ───────────────────────────────────── */
.hs-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.hs-prev { left: 12px; }
.hs-next { right: 12px; }
.hs-arrow:hover,
.hs-arrow:focus-visible {
	background: var(--hs-accent, #f5c400);
	color: #111;
	outline: none;
}

/* ── Ajustes específicos para pantallas móviles (<= 800px) ── */
@media (max-width: 800px) {
	.hs-arrow { 
		width: 36px; 
		height: 36px; 
	}
	.hs-prev { left: 6px; }
	.hs-next { right: 6px; }
	
	.cyg--slide-home .vc_column-inner {
		padding: 0 !important;
	}
	
	.cyg--slide-home .hs-slider {
	min-height: 300px;
}

	/* Reducción general de tamaños de texto en mobile */
	.hs-title {
		font-size: clamp(1.3rem, 5vw, 1.8rem) !important;
		margin-bottom: 12px;
	}

	.hs-subtitle {
		font-size: clamp(1.1rem, 4vw, 1.5rem) !important;
		margin-bottom: 12px;
	}

	.hs-desc {
		font-size: clamp(0.9rem, 3.5vw, 1.1rem) !important;
		margin-bottom: 15px;
	}
	
	.hs-btn {
		font-size: 0.9rem !important;
		padding: 8px 14px;
	}
}

/* ── Grupo "razones" ──────────────────────────────────────── */
.hs-slider[data-grupo="razones"] .hs-dots,
.hs-slider[data-grupo="razones"] .hs-overlay {
	display: none;
}
.hs-slider[data-grupo="razones"] .hs-arrow,
.hs-slider[data-grupo="razones"] .hs-arrow:hover,
.hs-slider[data-grupo="razones"] .hs-arrow:focus-visible {
	background: transparent;
	color: #fff;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
}
.hs-slider[data-grupo="razones"] .hs-arrow svg {
	width: 32px;
	height: 32px;
}
.hs-slider[data-grupo="razones"] .hs-arrow:hover {
	opacity: .8;
}

/* ── Accesibilidad: foco visible ────────────────────────────── */
.hs-dot:focus-visible {
	outline: 2px solid var(--hs-accent, #f5c400);
	outline-offset: 3px;
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.hs-slide {
		transition: none;
	}
}