/**
 * Inicio (theme_inicio.php) — cabecera Slick: imágenes y YouTube.
 *
 * Encolado solo cuando theme_skema_is_theme_inicio_template_active().
 * Landings: css/landings/skema-landing-hero.css (selectores distintos).
 *
 * Convención: CSS mobile-first (base = móvil; @media (min-width: …) refina desktop).
 *
 * @package skema
 */

/* Slider YouTube — ancho 100 %, 16:9 (el alto puede superar el viewport) */
.slider-banner--youtube {
	width: 100%;
}

.slider-banner--youtube .hero-yt-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	overflow: hidden;
	border-radius: 0 0 80px 80px;
	background: #000;
}

.slider-banner--youtube .hero-yt-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Slider imágenes — ancho 100 %, ratio nativo de cada imagen (sin recorte; puede ser más alto que el viewport) */
.site-main--inicio .slider-banner:not(.slider-banner--youtube),
.page-template-theme_inicio-php .slider-banner:not(.slider-banner--youtube) {
	position: relative;
}

.site-main--inicio .slider-banner:not(.slider-banner--youtube) .slick-slide img,
.page-template-theme_inicio-php .slider-banner:not(.slider-banner--youtube) .slick-slide img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
}

/* Puntos Slick: centrados en el eje vertical del viewport (no del alto del hero) */
.site-main--inicio .slider-banner,
.page-template-theme_inicio-php .slider-banner {
	position: relative;
}

.site-main--inicio .home-hero-dots,
.page-template-theme_inicio-php .home-hero-dots {
	position: fixed;
	top: 50%;
	left: 2.5rem;
	right: auto;
	z-index: 100;
	transform: translateY(-50%) rotate(90deg);
	min-width: 30px;
	min-height: 30px;
	padding: 10px 18px;
	border-radius: 100px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background-color: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Oculto cuando el .slider-banner asociado ya no cruza el viewport (ver main.js) */
.site-main--inicio .home-hero-dots.home-hero-dots--hero-off,
.page-template-theme_inicio-php .home-hero-dots.home-hero-dots--hero-off {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.site-main--inicio .home-hero-dots .slick-dots,
.page-template-theme_inicio-php .home-hero-dots .slick-dots {
	position: static;
	bottom: auto;
	left: auto;
	width: auto;
	height: 100%;
	margin: 0 auto;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.site-main--inicio .home-hero-dots .slick-dots li,
.page-template-theme_inicio-php .home-hero-dots .slick-dots li {
	width: auto;
	height: auto;
	margin: 0;
}

.site-main--inicio .home-hero-dots .slick-dots li button,
.page-template-theme_inicio-php .home-hero-dots .slick-dots li button {
	width: 8px;
	height: 8px;
	padding: 0;
	border-radius: 50%;
	background-color: #fff;
	opacity: 0.7;
	transition: all 0.3s ease;
}

.site-main--inicio .home-hero-dots .slick-dots li button::before,
.page-template-theme_inicio-php .home-hero-dots .slick-dots li button::before {
	display: none;
}

.site-main--inicio .home-hero-dots .slick-dots li.slick-active button,
.page-template-theme_inicio-php .home-hero-dots .slick-dots li.slick-active button {
	width: 25px;
	border-radius: 10px;
	opacity: 1;
}

@media (min-width: 992px) {
	.site-main--inicio .home-hero-dots,
	.page-template-theme_inicio-php .home-hero-dots {
		display: flex;
	}
}
