/* =========================================================
   HERO / SLIDER
   Theme: cicloturismo
   ========================================================= */

.site-header__hero {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #050505;
}

/* ---------------------------------
   Hero home / slider
--------------------------------- */
.site-header__hero--slider {
	min-height: 430px;
}

.site-hero-slider__track {
	position: relative;
	width: 100%;
	min-height: inherit;
}

.site-hero-slide {
	position: relative;
	display: none;
	align-items: stretch;
	min-height: 430px;
	background-color: #050505;
	background-image: var(--hero-bg-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
}

.site-hero-slide.is-active {
	display: flex;
}

.site-header__hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.68) 31%, rgba(0,0,0,.24) 63%, rgba(0,0,0,.08) 100%),
		linear-gradient(180deg, rgba(0,0,0,.34) 0%, rgba(0,0,0,.08) 42%, rgba(0,0,0,.55) 100%);
}

.site-header__hero-inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	min-height: 430px;
	padding-top: 46px;
	padding-bottom: 58px;
}

.site-hero__content {
	width: 100%;
	max-width: 690px;
	color: #fff;
}

.site-hero__eyebrow {
	display: none;
}

.site-hero__title {
	margin: 0;
	font-family: 'Oswald', Impact, sans-serif;
	font-size: clamp(3.25rem, 6vw, 5.9rem);
	font-weight: 700;
	line-height: .96;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	text-wrap: balance;
	text-shadow: 0 4px 18px rgba(0,0,0,.42);
}

.site-hero__title-line {
	display: block;
}

.site-hero__title-line--accent {
	color: var(--cdt-red, #d71920);
}

.site-hero__subtitle {
	max-width: 540px;
	margin: 20px 0 0;
	font-size: clamp(1.05rem, 1.45vw, 1.35rem);
	font-weight: 700;
	line-height: 1.5;
	color: rgba(255,255,255,.92);
}

.site-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.site-header__hero .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 15px 24px;
	border: 2px solid transparent;
	border-radius: 13px;
	font-size: .96rem;
	font-weight: 900;
	line-height: 1;
	letter-spacing: .01em;
	text-decoration: none;
	text-transform: uppercase;
	transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.site-header__hero .button:hover,
.site-header__hero .button:focus {
	transform: translateY(-1px);
}

.site-header__hero .button--primary {
	background: var(--cdt-red, #d71920);
	color: #fff;
	box-shadow: 0 18px 34px rgba(215,31,20,.24);
}

.site-header__hero .button--primary:hover,
.site-header__hero .button--primary:focus {
	background: var(--cdt-red-dark, #b41218);
	color: #fff;
	box-shadow: 0 22px 40px rgba(215,31,20,.30);
}

.site-header__hero .button--secondary {
	background: rgba(0,0,0,.30);
	border-color: rgba(255,255,255,.78);
	color: #fff;
	backdrop-filter: blur(4px);
}

.site-header__hero .button--secondary:hover,
.site-header__hero .button--secondary:focus {
	background: rgba(255,255,255,.14);
	border-color: #fff;
	color: #fff;
}

.site-header__hero .button__icon {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
}

.site-header__hero .button__icon--calendar::before {
	content: "";
	position: absolute;
	inset: 2px 1px 1px;
	border: 2px solid currentColor;
	border-radius: 3px;
}

.site-header__hero .button__icon--calendar::after {
	content: "";
	position: absolute;
	left: 5px;
	right: 5px;
	top: 7px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 -4px 0 -1px currentColor;
}

.site-header__hero .button__icon--users::before,
.site-header__hero .button__icon--users::after {
	content: "";
	position: absolute;
	border: 2px solid currentColor;
}

.site-header__hero .button__icon--users::before {
	left: 7px;
	top: 2px;
	width: 6px;
	height: 6px;
	border-radius: 999px;
}

.site-header__hero .button__icon--users::after {
	left: 2px;
	bottom: 2px;
	width: 16px;
	height: 8px;
	border-radius: 999px 999px 4px 4px;
}

/* ---------------------------------
   Controles slider
--------------------------------- */
.site-hero-slider__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.site-hero-slider__dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	pointer-events: auto;
}

.site-hero-slider__dot {
	width: 13px;
	height: 13px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255,255,255,.88);
	cursor: pointer;
	transition: transform .2s ease, background-color .2s ease;
}

.site-hero-slider__dot.is-active {
	background: var(--cdt-red, #d71920);
}

.site-hero-slider__dot:hover,
.site-hero-slider__dot:focus {
	transform: scale(1.15);
}

/* ---------------------------------
   Hero interno / estático
--------------------------------- */
.site-header__hero--static {
	min-height: 48vh;
	background-image: var(--hero-bg-image);
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
	isolation: isolate;
}

.site-header__hero--static .site-header__hero-inner {
	min-height: 48vh;
	padding-top: 72px;
	padding-bottom: 62px;
}

.site-header--internal .site-hero__content,
.site-header--no-hero .site-hero__content {
	max-width: 840px;
}

.site-header--internal .site-hero__title {
	font-size: clamp(2.4rem, 4.6vw, 4.4rem);
}

.site-header--internal .site-hero__subtitle {
	max-width: 760px;
	margin-top: 18px;
	font-size: clamp(.98rem, 1.35vw, 1.12rem);
}

/* ---------------------------------
   Variante sin hero
--------------------------------- */
.site-header--no-hero + #content,
.site-header--no-hero + main {
	padding-top: 0;
}

/* ---------------------------------
   Responsive
--------------------------------- */
@media (max-width: 1200px) {
	.site-header__hero--slider,
	.site-hero-slide,
	.site-header__hero-inner {
		min-height: 410px;
	}

	.site-header__hero-inner {
		padding-top: 44px;
		padding-bottom: 56px;
	}
}

@media (max-width: 1024px) {
	.site-header__hero--slider,
	.site-hero-slide,
	.site-header__hero-inner {
		min-height: 390px;
	}

	.site-hero__content {
		max-width: 620px;
	}
}

@media (max-width: 768px) {
	.site-header__hero--slider,
	.site-hero-slide,
	.site-header__hero-inner {
		min-height: 520px;
	}

	.site-header__hero-inner {
		padding-top: 58px;
		padding-bottom: 76px;
	}

	.site-header__hero-overlay {
		background: linear-gradient(90deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.58) 58%, rgba(0,0,0,.30) 100%), linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.70) 100%);
	}

	.site-header__hero--static,
	.site-header__hero--static .site-header__hero-inner {
		min-height: 42vh;
	}

	.site-header__hero--static .site-header__hero-inner {
		padding-top: 64px;
		padding-bottom: 54px;
	}

	.site-hero__title {
		font-size: clamp(2.7rem, 10vw, 4rem);
	}

	.site-hero__subtitle {
		font-size: 1rem;
		line-height: 1.55;
	}
}

@media (max-width: 680px) {
	.site-header__hero-inner {
		align-items: flex-end;
		padding-top: 56px;
		padding-bottom: 82px;
	}

	.site-hero__content {
		max-width: 100%;
	}

	.site-hero__title {
		font-size: clamp(2.35rem, 11vw, 3.2rem);
		line-height: 1;
	}

	.site-hero__subtitle {
		margin-top: 16px;
		font-size: .98rem;
	}

	.site-hero__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-top: 22px;
	}

	.site-header__hero .button {
		width: 100%;
		min-height: 50px;
	}

	.site-hero-slider__controls {
		bottom: 24px;
	}
}

@media (max-width: 480px) {
	.site-hero__title {
		font-size: clamp(2.1rem, 12vw, 2.9rem);
	}

	.site-hero__subtitle {
		font-size: .94rem;
	}
}
