/* ==========================================================================
   YS Hero Slider — Modern, accessible, dependency-free
   Identidad visual: navy #00247e · acento naranja #cd7d0b
   ========================================================================== */

.ys-hero {
	--ys-navy: #00247e;
	--ys-navy-soft: #1a3a9e;
	--ys-orange: #cd7d0b;
	--ys-orange-light: #f0a93a;
	position: relative;
	width: 100%;
	height: 840px;
	max-height: 92vh;
	overflow: hidden;
	background: var(--ys-navy);
	isolation: isolate;
}

.ys-hero__track {
	position: relative;
	width: 100%;
	height: 100%;
}

/* ---------- Slides ---------- */
.ys-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 1.1s cubic-bezier(.45, 0, .15, 1);
	z-index: 1;
}

.ys-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

.ys-hero__bg {
	position: absolute;
	inset: 0;
	background-color: #00184c;
	background-size: cover;
	background-position: center;
	transform: scale(1.12);
	transition: transform 6.5s cubic-bezier(.25, .1, .25, 1);
	will-change: transform;
}

.ys-hero__slide.is-active .ys-hero__bg {
	transform: scale(1);
}

.ys-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(0, 12, 46, .88) 0%, rgba(0, 24, 92, .62) 42%, rgba(0, 24, 92, .18) 75%);
}

/* ---------- Content ---------- */
.ys-hero__container {
	position: relative;
	height: 100%;
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 40px;
	display: flex;
	align-items: center;
	z-index: 3;
}

.ys-hero__content {
	max-width: 660px;
}

.ys-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	background: rgba(205, 125, 11, .16);
	border: 1px solid rgba(205, 125, 11, .55);
	border-radius: 30px;
	padding: 8px 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(16px);
}

.ys-hero__eyebrow i {
	color: var(--ys-orange-light);
}

.ys-hero__title {
	font-family: 'Barlow', sans-serif;
	font-size: 64px;
	line-height: 1.08;
	font-weight: 700;
	color: #fff;
	margin: 22px 0 8px;
	opacity: 0;
	transform: translateY(26px);
}

.ys-hero__title span {
	color: var(--ys-orange);
	position: relative;
}

.ys-hero__subtitle {
	font-family: 'Barlow', sans-serif;
	font-size: 26px;
	font-weight: 500;
	color: #cfd8f0;
	margin: 0 0 18px;
	opacity: 0;
	transform: translateY(26px);
}

.ys-hero__text {
	font-family: 'Lato', sans-serif;
	font-size: 16px;
	line-height: 1.75;
	color: rgba(255, 255, 255, .82);
	max-width: 520px;
	margin: 0 0 34px;
	opacity: 0;
	transform: translateY(22px);
}

.ys-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	opacity: 0;
	transform: translateY(20px);
}

/* Staggered entrance — runs on the active slide */
.ys-hero__slide.is-active .ys-hero__eyebrow { transition: opacity .7s ease .35s, transform .7s cubic-bezier(.2,.8,.2,1) .35s; opacity: 1; transform: translateY(0); }
.ys-hero__slide.is-active .ys-hero__title    { transition: opacity .8s ease .5s,  transform .8s cubic-bezier(.2,.8,.2,1) .5s;  opacity: 1; transform: translateY(0); }
.ys-hero__slide.is-active .ys-hero__subtitle { transition: opacity .8s ease .65s, transform .8s cubic-bezier(.2,.8,.2,1) .65s; opacity: 1; transform: translateY(0); }
.ys-hero__slide.is-active .ys-hero__text     { transition: opacity .8s ease .8s,  transform .8s cubic-bezier(.2,.8,.2,1) .8s;  opacity: 1; transform: translateY(0); }
.ys-hero__slide.is-active .ys-hero__actions  { transition: opacity .8s ease .95s, transform .8s cubic-bezier(.2,.8,.2,1) .95s; opacity: 1; transform: translateY(0); }

/* ---------- Buttons ---------- */
.ys-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 16px 30px;
	font-family: 'Barlow', sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .03em;
	text-transform: uppercase;
	border-radius: 50px;
	overflow: hidden;
	isolation: isolate;
	transition: color .4s ease, border-color .4s ease, transform .35s ease, box-shadow .4s ease;
}

.ys-btn i {
	font-size: 13px;
	transition: transform .4s ease;
}

.ys-btn:hover {
	transform: translateY(-3px);
}

.ys-btn:hover i {
	transform: translateX(4px);
}

.ys-btn--primary {
	color: #fff;
	background: var(--ys-orange);
	box-shadow: 0 10px 24px rgba(205, 125, 11, .35);
}

.ys-btn--primary::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ys-navy);
	transform: translateX(-101%);
	transition: transform .45s cubic-bezier(.25, .1, .25, 1);
	z-index: -1;
}

.ys-btn--primary:hover::before {
	transform: translateX(0);
}

.ys-btn--primary:hover {
	box-shadow: 0 12px 28px rgba(0, 36, 126, .45);
}

.ys-btn--outline {
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, .55);
	background: transparent;
}

.ys-btn--outline::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #fff;
	transform: translateX(-101%);
	transition: transform .45s cubic-bezier(.25, .1, .25, 1);
	z-index: -1;
}

.ys-btn--outline:hover {
	color: var(--ys-navy);
	border-color: #fff;
}

.ys-btn--outline:hover::before {
	transform: translateX(0);
}

/* ---------- Prev / Next nav ---------- */
.ys-hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 54px;
	height: 54px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .35);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	cursor: pointer;
	z-index: 5;
	backdrop-filter: blur(4px);
	transition: background .35s ease, border-color .35s ease, opacity .35s ease;
	opacity: 0;
}

.ys-hero:hover .ys-hero__nav {
	opacity: 1;
}

.ys-hero__nav:hover {
	background: var(--ys-orange);
	border-color: var(--ys-orange);
}

.ys-hero__nav--prev { left: 30px; }
.ys-hero__nav--next { right: 30px; }

/* ---------- Footer: dots + play ---------- */
.ys-hero__footer {
	position: absolute;
	left: 50%;
	bottom: 26px;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 18px;
	z-index: 5;
}

.ys-hero__dots {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ys-hero__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .6);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background .3s ease, transform .3s ease, width .3s ease;
}

.ys-hero__dot:hover {
	transform: scale(1.15);
}

.ys-hero__dot.is-active {
	width: 28px;
	border-radius: 6px;
	background: var(--ys-orange);
	border-color: var(--ys-orange);
}

.ys-hero__play {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, .45);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font-size: 11px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .3s ease, border-color .3s ease;
}

.ys-hero__play:hover {
	background: var(--ys-orange);
	border-color: var(--ys-orange);
}

/* ---------- Autoplay progress bar ---------- */
.ys-hero__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: rgba(255, 255, 255, .12);
	z-index: 5;
}

.ys-hero__progress span {
	display: block;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--ys-orange), var(--ys-orange-light));
	transition: width linear;
}

.ys-hero.is-paused .ys-hero__progress span {
	transition: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.ys-hero__slide,
	.ys-hero__bg,
	.ys-hero__eyebrow,
	.ys-hero__title,
	.ys-hero__subtitle,
	.ys-hero__text,
	.ys-hero__actions {
		transition-duration: .01ms !important;
	}
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
	.ys-hero { height: 720px; }
	.ys-hero__title { font-size: 52px; }
	.ys-hero__subtitle { font-size: 22px; }
}

@media (max-width: 991px) {
	.ys-hero { height: 640px; }
	.ys-hero__container { padding: 0 24px; }
	.ys-hero__title { font-size: 42px; }
	.ys-hero__subtitle { font-size: 20px; }
	.ys-hero__nav { width: 46px; height: 46px; opacity: 1; }
	.ys-hero__nav--prev { left: 14px; }
	.ys-hero__nav--next { right: 14px; }
}

@media (max-width: 767px) {
	.ys-hero { height: 580px; }
	.ys-hero__title { font-size: 32px; }
	.ys-hero__subtitle { font-size: 17px; }
	.ys-hero__text { font-size: 14px; margin-bottom: 26px; }
	.ys-btn { padding: 13px 22px; font-size: 13px; }
	.ys-hero__nav { display: none; }
	.ys-hero__content { max-width: 100%; }
}

@media (max-width: 480px) {
	.ys-hero { height: 540px; }
	.ys-hero__title { font-size: 26px; }
	.ys-hero__actions { gap: 12px; }
	.ys-hero__footer { bottom: 16px; }
}
