/* ==========================================================================
   YS Section Head — badge + título grande reutilizable
   Identidad visual: navy #00247e · acento naranja #cd7d0b
   Estilo elegante: tagline fino + título serio + línea-acento animada
   ========================================================================== */

.ys-section-head {
	text-align: center;
	max-width: 680px;
	margin: 0 auto 50px;
}

.ys-section-head__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: none;
	box-shadow: none;
	padding: 0;
	color: #cd7d0b;
	font-family: 'Barlow', sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	margin-bottom: 14px;
	opacity: 0;
	transform: translateY(14px);
	animation: ysSectionHeadBadgeIn .7s cubic-bezier(.2, .8, .2, 1) .1s forwards;
}

.ys-section-head__badge i {
	font-size: 12px;
	transition: transform .4s ease;
}

.ys-section-head:hover .ys-section-head__badge i {
	transform: rotate(180deg) scale(1.15);
}

.ys-section-head__title {
	font-family: 'Barlow', sans-serif;
	font-size: 42px;
	font-weight: 800;
	color: #00247e;
	margin: 0;
	line-height: 1.25;
	opacity: 0;
	transform: translateY(18px);
	animation: ysSectionHeadTitleIn .7s cubic-bezier(.2, .8, .2, 1) .25s forwards;
}

.ys-section-head__title span {
	color: #cd7d0b;
}

.ys-section-head__divider {
	display: inline-block;
	position: relative;
	height: 3px;
	border-bottom: 3px solid rgba(0, 36, 126, .25);
	width: 70px;
	margin-top: 20px;
	opacity: 0;
	animation: ysSectionHeadBadgeIn .7s cubic-bezier(.2, .8, .2, 1) .4s forwards;
}

.ys-section-head__divider::after {
	content: '';
	position: absolute;
	left: 0;
	top: -5px;
	height: 10px;
	width: 10px;
	border-radius: 50%;
	background: #cd7d0b;
	box-shadow: 0 0 0 4px rgba(205, 125, 11, .15);
	animation: ysSectionHeadDividerMove 4.5s infinite linear;
}

/* ---------- Light variant (dark backgrounds) ---------- */
.ys-section-head--light .ys-section-head__title {
	color: #ffffff;
}

.ys-section-head--light .ys-section-head__title span {
	color: #f0a93a;
}

.ys-section-head--light .ys-section-head__divider {
	border-bottom-color: rgba(255, 255, 255, .25);
}

@keyframes ysSectionHeadBadgeIn {
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ysSectionHeadTitleIn {
	to { opacity: 1; transform: translateY(0); }
}

@keyframes ysSectionHeadDividerMove {
	0% { left: 0; }
	50% { left: calc(100% - 10px); }
	100% { left: 0; }
}

@media (max-width: 575px) {
	.ys-section-head__title { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
	.ys-section-head__badge,
	.ys-section-head__title,
	.ys-section-head__divider,
	.ys-section-head__divider::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}
