/* ══════════════════════════════════════════════════════════════════
   RWA Section Heading — 6 estilos temáticos de radio
   ══════════════════════════════════════════════════════════════════ */

/* ── Base ── */
.rwa-sh {
	--rwa-sh-accent:      #ef4444;
	--rwa-sh-badge-bg:    transparent;
	--rwa-sh-badge-color: #fff;
	font-family: var(--rwa-font-primary, Montserrat, sans-serif);
}

.rwa-sh__title {
	margin: 0;
	font-family: inherit;
	font-weight: 800;
	line-height: 1.2;
	color: #fff;
	transition: color .3s;
}

.rwa-sh__subtitle {
	margin: 10px 0 0;
	color: rgba(255,255,255,.6);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.rwa-sh__link {
	text-decoration: none;
	color: inherit;
}
.rwa-sh__link:hover .rwa-sh__title {
	color: var(--rwa-sh-accent, #ef4444);
}

/* ════════════════════════════════════════════════════════════════
   🔴 ON AIR — indicador de transmisión en vivo
   ════════════════════════════════════════════════════════════════ */

.rwa-sh--onair .rwa-sh__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 10px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--rwa-sh-accent, #ef4444);
}

.rwa-sh--onair .rwa-sh__badge-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--rwa-sh-accent, #ef4444);
	animation: rwa-sh-onair-pulse 1.4s ease-in-out infinite;
}

@keyframes rwa-sh-onair-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: .45; transform: scale(1.5); }
}

.rwa-sh--onair .rwa-sh__title {
	font-size: clamp(22px, 3vw, 38px);
	font-weight: 900;
	position: relative;
	display: inline-block;
	padding-bottom: 14px;
}

.rwa-sh--onair .rwa-sh__title::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 56px;
	height: 3px;
	background: var(--rwa-sh-accent, #ef4444);
	border-radius: 2px;
	transition: width .4s ease;
}
.rwa-sh--onair:hover .rwa-sh__title::after {
	width: 100%;
}

.rwa-sh--align-center.rwa-sh--onair .rwa-sh__title::after {
	left: 50%;
	transform: translateX(-50%);
}
.rwa-sh--align-right.rwa-sh--onair .rwa-sh__title::after {
	left: auto;
	right: 0;
}

.rwa-sh--onair .rwa-sh__subtitle {
	margin-top: 18px;
}

/* ════════════════════════════════════════════════════════════════
   📻 FREQUENCY — barras de audio animadas
   ════════════════════════════════════════════════════════════════ */

.rwa-sh--frequency .rwa-sh__freq-wrap {
	display: inline-flex;
	align-items: center;
	gap: 14px;
}

.rwa-sh__bars {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	height: 34px;
	flex-shrink: 0;
}

.rwa-sh__bars i {
	display: block;
	width: 4px;
	background: var(--rwa-sh-accent, #ef4444);
	border-radius: 2px 2px 1px 1px;
	transform-origin: bottom center;
	animation: rwa-sh-freq-bar 1.1s ease-in-out infinite;
}

.rwa-sh__bars i:nth-child(1) { height: 30%; animation-delay: .00s; }
.rwa-sh__bars i:nth-child(2) { height: 70%; animation-delay: .14s; }
.rwa-sh__bars i:nth-child(3) { height: 100%; animation-delay: .28s; }
.rwa-sh__bars i:nth-child(4) { height: 55%; animation-delay: .42s; }
.rwa-sh__bars i:nth-child(5) { height: 25%; animation-delay: .56s; }

@keyframes rwa-sh-freq-bar {
	0%, 100% { transform: scaleY(1);    opacity: 1; }
	50%      { transform: scaleY(.18); opacity: .4; }
}

.rwa-sh--frequency .rwa-sh__title {
	font-size: clamp(18px, 2.5vw, 30px);
	font-weight: 900;
	white-space: nowrap;
}

.rwa-sh--frequency .rwa-sh__subtitle {
	margin-top: 12px;
}

/* ════════════════════════════════════════════════════════════════
   🎙 STUDIO — profesional con borde de acento
   ════════════════════════════════════════════════════════════════ */

.rwa-sh--studio {
	padding-left: 18px;
	border-left: 4px solid var(--rwa-sh-accent, #ef4444);
}

.rwa-sh--align-center.rwa-sh--studio,
.rwa-sh--align-right.rwa-sh--studio {
	padding-left: 0;
	border-left: none;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--rwa-sh-accent, #ef4444);
}

.rwa-sh--studio .rwa-sh__badge {
	display: block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--rwa-sh-accent, #ef4444);
	margin-bottom: 6px;
}

.rwa-sh--studio .rwa-sh__title {
	font-size: clamp(20px, 2.5vw, 32px);
	font-weight: 800;
}

/* ════════════════════════════════════════════════════════════════
   💡 NEON — brillo de neón
   ════════════════════════════════════════════════════════════════ */

.rwa-sh--neon .rwa-sh__title {
	font-size: clamp(26px, 4vw, 52px);
	font-weight: 900;
	letter-spacing: 3px;
	text-transform: uppercase;
	color: var(--rwa-sh-accent, #ef4444);
	text-shadow:
		0 0  6px var(--rwa-sh-accent, #ef4444),
		0 0 14px var(--rwa-sh-accent, #ef4444),
		0 0 30px var(--rwa-sh-accent, #ef4444),
		0 0 60px var(--rwa-sh-accent, #ef4444);
	animation: rwa-sh-neon-breathe 2.8s ease-in-out infinite;
}

@keyframes rwa-sh-neon-breathe {
	0%, 100% {
		text-shadow:
			0 0  6px var(--rwa-sh-accent, #ef4444),
			0 0 14px var(--rwa-sh-accent, #ef4444),
			0 0 30px var(--rwa-sh-accent, #ef4444),
			0 0 60px var(--rwa-sh-accent, #ef4444);
	}
	50% {
		text-shadow:
			0 0  3px var(--rwa-sh-accent, #ef4444),
			0 0  7px var(--rwa-sh-accent, #ef4444),
			0 0 15px var(--rwa-sh-accent, #ef4444),
			0 0 28px var(--rwa-sh-accent, #ef4444);
	}
}

.rwa-sh--neon .rwa-sh__subtitle {
	letter-spacing: 1px;
	color: rgba(255,255,255,.5);
}

/* ════════════════════════════════════════════════════════════════
   ⚡ BREAKING — alerta de última hora
   ════════════════════════════════════════════════════════════════ */

.rwa-sh--breaking .rwa-sh__breaking-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
}

.rwa-sh--breaking .rwa-sh__badge {
	--_bg: var(--rwa-sh-badge-bg, var(--rwa-sh-accent, #ef4444));
	display: inline-flex;
	align-items: center;
	background: var(--_bg);
	color: var(--rwa-sh-badge-color, #fff);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 6px 16px 6px 12px;
	position: relative;
	flex-shrink: 0;
	white-space: nowrap;
}

.rwa-sh--breaking .rwa-sh__badge::after {
	content: '';
	position: absolute;
	right: -12px;
	top: 0;
	width: 0;
	height: 0;
	border-top: 15px solid transparent;
	border-bottom: 15px solid transparent;
	border-left: 12px solid var(--_bg);
}

.rwa-sh--breaking .rwa-sh__title {
	font-size: clamp(16px, 2.2vw, 26px);
	font-weight: 800;
	padding-left: 22px;
	margin: 0;
}

.rwa-sh--align-center.rwa-sh--breaking .rwa-sh__breaking-row,
.rwa-sh--align-right.rwa-sh--breaking  .rwa-sh__breaking-row {
	justify-content: center;
}
.rwa-sh--align-right.rwa-sh--breaking .rwa-sh__breaking-row {
	justify-content: flex-end;
}

/* ════════════════════════════════════════════════════════════════
   〜 WAVE — onda de radio
   ════════════════════════════════════════════════════════════════ */

.rwa-sh--wave .rwa-sh__title {
	font-size: clamp(22px, 3vw, 38px);
	font-weight: 900;
}

.rwa-sh__wave-deco {
	display: block;
	margin: 10px 0 14px;
	line-height: 0;
}

.rwa-sh--align-center .rwa-sh__wave-deco { text-align: center; }
.rwa-sh--align-right  .rwa-sh__wave-deco { text-align: right; }

.rwa-sh__wave-deco svg {
	width: 180px;
	height: 24px;
	max-width: 100%;
	animation: rwa-sh-wave-shift 3s ease-in-out infinite;
}

@keyframes rwa-sh-wave-shift {
	0%, 100% { stroke-dashoffset: 0; }
	50%      { stroke-dashoffset: 10; }
}

/* Apply dasharray to the wave path for the shift animation */
.rwa-sh__wave-deco svg path {
	stroke-dasharray: 10 2;
	animation: rwa-sh-wave-dash 2s linear infinite;
}

@keyframes rwa-sh-wave-dash {
	from { stroke-dashoffset: 0; }
	to   { stroke-dashoffset: -24; }
}

/* ════════════════════════════════════════════════════════════════
   Modo claro
   ════════════════════════════════════════════════════════════════ */

body.rwa-light-mode .rwa-sh__title {
	color: #1a1a2e;
}
body.rwa-light-mode .rwa-sh__subtitle {
	color: rgba(0,0,0,.5);
}
body.rwa-light-mode .rwa-sh--neon .rwa-sh__title {
	color: var(--rwa-sh-accent, #ef4444);
	/* neon glow is already colored, reduce intensity in light mode */
	text-shadow:
		0 0  4px var(--rwa-sh-accent, #ef4444),
		0 0 10px var(--rwa-sh-accent, #ef4444),
		0 0 20px var(--rwa-sh-accent, #ef4444);
}
