/* Bendición Radio en Vivo */
:root { --bfm-accent: #ec7325; }
.bfm {
	--bfm-bg1: #0d1838;
	--bfm-bg2: #182a5c;
	--bfm-text: #ffffff;
	--bfm-muted: rgba(255, 255, 255, .66);
	--bfm-line: rgba(255, 255, 255, .14);
	--bfm-radius: 22px;
	font-family: inherit;
	color: var(--bfm-text);
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
}
.bfm *, .bfm *::before, .bfm *::after { box-sizing: border-box; }
/* El tema y Elementor dan estilo a todos los <button>: aquí se neutraliza.
   Cada botón define su aspecto con variables (--bb fondo, --bc texto, --bs sombra). */
.bfm button,
.bfm button:hover,
.bfm button:focus,
.bfm button:active {
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--bb, transparent) !important;
	color: var(--bc, inherit) !important;
	box-shadow: var(--bs, none) !important;
	text-decoration: none !important;
}
.bfm svg { width: 100% !important; height: 100% !important; max-width: none; display: block; }
.bfm .bfm-fab, .bfm .bfm-play { display: grid !important; place-items: center; }
.bfm .bfm-icon-btn { display: inline-grid !important; place-items: center; }
.bfm [hidden] { display: none !important; }

/* ---------- flotante ---------- */
.bfm--float {
	position: fixed;
	bottom: 24px;
	z-index: 99990;
}
.bfm--float.bfm--right { right: 26px; }
.bfm--float.bfm--left { left: 26px; }

.bfm-fab {
	position: relative;
	width: 62px;
	height: 62px;
	cursor: pointer;
	--bb: var(--bfm-accent);
	--bc: #fff;
	--bs: 0 10px 28px rgba(0, 0, 0, .28), 0 2px 6px rgba(0, 0, 0, .18);
	display: grid;
	place-items: center;
	transition: transform .25s ease, opacity .2s ease;
}
.bfm-fab:hover { transform: scale(1.06); }
.bfm-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.bfm-fab-icon { display: block; width: 28px; height: 28px; grid-area: 1 / 1; transition: opacity .2s; }
.bfm-fab .bfm-eq { grid-area: 1 / 1; opacity: 0; transition: opacity .2s; }
.bfm-fab-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid var(--bfm-accent);
	animation: bfm-ring 2.4s ease-out infinite;
	pointer-events: none;
}
.bfm[data-state="playing"] .bfm-fab-icon { opacity: 0; }
.bfm[data-state="playing"] .bfm-fab .bfm-eq { opacity: 1; }
.bfm--float[data-open="1"] .bfm-fab { transform: scale(.4); opacity: 0; pointer-events: none; }

.bfm--float .bfm-card {
	position: absolute;
	bottom: 0;
	width: 344px;
	max-width: calc(100vw - 32px);
	transform-origin: bottom right;
	transform: translateY(12px) scale(.94);
	opacity: 0;
	transition: transform .26s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}
.bfm--right .bfm-card { right: 0; }
.bfm--left .bfm-card { left: 0; transform-origin: bottom left; }
.bfm--float[data-open="1"] .bfm-card { transform: none; opacity: 1; }

/* ---------- tarjeta ---------- */
.bfm-card {
	position: relative;
	background:
		radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .08), transparent 60%),
		linear-gradient(150deg, var(--bfm-bg1), var(--bfm-bg2));
	border: 1px solid var(--bfm-line);
	border-radius: var(--bfm-radius);
	padding: 18px;
	box-shadow: 0 24px 60px rgba(4, 10, 30, .45);
	overflow: hidden;
}
.bfm-head { display: flex; align-items: center; gap: 12px; }
.bfm-logo {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 0 0 2px var(--bfm-accent);
}
.bfm-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfm-titles { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.bfm-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--bfm-accent);
}
.bfm-name {
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.bfm-live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	opacity: .55;
}
.bfm[data-state="playing"] .bfm-label .bfm-live-dot { background: #ff3b3b; opacity: 1; animation: bfm-blink 1.4s ease-in-out infinite; }

.bfm-icon-btn {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	--bb: transparent;
	--bc: var(--bfm-muted);
	cursor: pointer;
	transition: background .15s, color .15s;
}
.bfm .bfm-icon-btn { padding: 8px !important; }
.bfm-icon-btn:hover { --bb: rgba(255, 255, 255, .1); --bc: #fff; }
.bfm-icon-btn:focus-visible { outline: 2px solid var(--bfm-accent); outline-offset: 1px; }
.bfm-icon-btn[aria-expanded="true"] { --bc: var(--bfm-accent); --bb: rgba(255, 255, 255, .08); }

.bfm-main { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.bfm-play {
	position: relative;
	flex: 0 0 auto;
	width: 58px;
	height: 58px;
	cursor: pointer;
	--bb: #fff;
	--bc: var(--bfm-bg1);
	--bs: 0 8px 22px rgba(0, 0, 0, .3);
	display: grid;
	place-items: center;
	transition: transform .15s ease, background .2s, color .2s;
}
.bfm-play:hover { transform: scale(1.05); }
.bfm-play:active { transform: scale(.96); }
.bfm-play:focus-visible { outline: 3px solid var(--bfm-accent); outline-offset: 3px; }
.bfm-play-i { grid-area: 1 / 1; display: block; width: 24px; height: 24px; }
.bfm-i-play { margin-left: 3px; }
.bfm-i-pause { display: none; }
.bfm[data-state="playing"] .bfm-play,
.bfm[data-state="loading"] .bfm-play,
.bfm[data-state="error"] .bfm-play { --bb: var(--bfm-accent); --bc: #fff; }
.bfm[data-state="playing"] .bfm-i-play,
.bfm[data-state="loading"] .bfm-i-play,
.bfm[data-state="error"] .bfm-i-play { display: none; }
.bfm[data-state="playing"] .bfm-i-pause,
.bfm[data-state="loading"] .bfm-i-pause,
.bfm[data-state="error"] .bfm-i-pause { display: block; }
.bfm-spinner {
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 3px solid transparent;
	border-top-color: var(--bfm-accent);
	opacity: 0;
	pointer-events: none;
}
.bfm[data-state="loading"] .bfm-spinner,
.bfm[data-state="error"] .bfm-spinner { opacity: 1; animation: bfm-spin .9s linear infinite; }
.bfm[data-state="blocked"] .bfm-play { animation: bfm-nudge 1.6s ease-in-out infinite; }

.bfm-now { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bfm-status { font-size: 12px; color: var(--bfm-muted); }
.bfm[data-state="playing"] .bfm-status { color: #fff; font-weight: 600; }
.bfm-song {
	display: block;
	overflow: hidden;
	white-space: nowrap;
	font-size: 15px;
	font-weight: 600;
	-webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
	mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.bfm-song-in { display: inline-block; }
.bfm-song.is-long .bfm-song-in { animation: bfm-marquee var(--bfm-dur, 10s) ease-in-out infinite alternate; }

/* onda decorativa */
.bfm-wave { display: flex; align-items: center; gap: 3px; height: 22px; margin-top: 4px; }
.bfm-wave i {
	flex: 1;
	max-width: 4px;
	height: 18%;
	border-radius: 2px;
	background: rgba(255, 255, 255, .28);
	transition: height .4s ease, background .3s;
}
.bfm[data-state="playing"] .bfm-wave i { background: var(--bfm-accent); animation: bfm-wave 1.1s ease-in-out infinite; }
.bfm-wave i:nth-child(3n) { animation-duration: .9s !important; }
.bfm-wave i:nth-child(4n) { animation-duration: 1.35s !important; }
.bfm-wave i:nth-child(5n+1) { animation-duration: .75s !important; }
.bfm-wave i:nth-child(2n) { animation-delay: -.3s; }
.bfm-wave i:nth-child(3n+1) { animation-delay: -.55s; }
.bfm-wave i:nth-child(7n) { animation-delay: -.8s; }

/* ecualizador del botón flotante */
.bfm-eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.bfm-eq i { width: 4px; height: 30%; border-radius: 2px; background: currentColor; animation: bfm-eq .9s ease-in-out infinite; }
.bfm-eq i:nth-child(2) { animation-delay: -.25s; animation-duration: .8s; }
.bfm-eq i:nth-child(3) { animation-delay: -.5s; animation-duration: 1.05s; }
.bfm-eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .7s; }

/* controles */
.bfm-controls {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--bfm-line);
}
.bfm-i-vol, .bfm-i-mute { display: block; width: 20px; height: 20px; }
.bfm-i-mute { display: none; }
.bfm.is-muted .bfm-i-vol { display: none; }
.bfm.is-muted .bfm-i-mute { display: block; }
.bfm-vol {
	--bfm-fill: 80%;
	flex: 1;
	min-width: 60px;
	height: 22px;
	margin: 0 4px;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.bfm-vol::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--bfm-accent) var(--bfm-fill), rgba(255, 255, 255, .2) var(--bfm-fill));
}
.bfm-vol::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.bfm-vol::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--bfm-accent); }
.bfm-vol::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	margin-top: -6px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 3px var(--bfm-accent);
}
.bfm-vol::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--bfm-accent); }
.bfm-vol:focus-visible { outline: 2px solid var(--bfm-accent); outline-offset: 2px; border-radius: 4px; }

/* historial */
.bfm-hist { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, .22); }
.bfm-hist-title { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bfm-muted); margin-bottom: 6px; }
.bfm-hist ol { list-style: none; margin: 0; padding: 0; max-height: 168px; overflow: auto; }
.bfm-hist li { font-size: 13px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .86); }
.bfm-hist li:last-child { border-bottom: 0; }
.bfm-hist li.bfm-empty { color: var(--bfm-muted); }

.bfm-toast {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translate(-50%, 8px);
	padding: 7px 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--bfm-bg1);
	font-size: 13px;
	font-weight: 600;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s, transform .2s;
	white-space: nowrap;
}
.bfm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- versión grande (en página) ---------- */
.bfm--full { max-width: 640px; margin: 0 auto; }
.bfm--full .bfm-card { padding: 26px; }
.bfm--full .bfm-logo { width: 64px; height: 64px; }
.bfm--full .bfm-name { font-size: 22px; }
.bfm--full .bfm-label { font-size: 12px; }
.bfm--full .bfm-main { margin-top: 22px; gap: 20px; }
.bfm--full .bfm-play { width: 84px; height: 84px; }
.bfm--full .bfm-play-i { width: 32px; height: 32px; }
.bfm--full .bfm-song { font-size: 19px; }
.bfm--full .bfm-status { font-size: 13px; }
.bfm--full .bfm-wave { height: 34px; }
.bfm--full .bfm-controls { margin-top: 20px; }

/* ---------- botón "En vivo" del menú ---------- */
.bfm-menu-item.bfm-menu-item { display: flex !important; align-items: center; }
.bfm-menu-item > a.bfm-menu-live {
	height: auto !important;
	align-self: center;
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 7px 13px !important;
	margin-left: 4px;
	font-size: 14px !important;
	white-space: nowrap;
	border-radius: 999px;
	background: var(--bfm-accent, #ec7325) !important;
	color: #fff !important;
	font-weight: 700;
	line-height: 1.1 !important;
	transition: filter .15s, transform .15s;
}
.bfm-menu-item > a.bfm-menu-live:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bfm-menu-item > a.bfm-menu-live::after,
.bfm-menu-item > a.bfm-menu-live::before { display: none !important; }
.bfm-menu-live .bfm-live-dot { background: #fff; opacity: 1; animation: bfm-blink 1.4s ease-in-out infinite; }

@media (min-width: 1025px) {
	.elementskit-navbar-nav:has(> .bfm-menu-item) { flex-wrap: nowrap !important; }
}

/* ---------- móvil ---------- */
@media (max-width: 600px) {
	.bfm--float { bottom: 16px; }
	.bfm--float.bfm--right { right: 16px; }
	.bfm--float.bfm--left { left: 16px; }
	.bfm-fab { width: 56px; height: 56px; }
	.bfm--float .bfm-card { width: calc(100vw - 32px); }
	.bfm--full .bfm-card { padding: 20px; }
	.bfm--full .bfm-play { width: 70px; height: 70px; }
	.bfm--full .bfm-name { font-size: 19px; }
	.bfm--full .bfm-song { font-size: 16px; }
	.bfm-menu-item > a.bfm-menu-live { margin: 10px 0 0 0; }
}

/* ---------- animaciones ---------- */
@keyframes bfm-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes bfm-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes bfm-spin { to { transform: rotate(360deg); } }
@keyframes bfm-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes bfm-marquee { 0%, 15% { transform: translateX(0); } 85%, 100% { transform: translateX(var(--bfm-shift, 0)); } }
@keyframes bfm-wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }
@keyframes bfm-eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

@media (prefers-reduced-motion: reduce) {
	.bfm *, .bfm-menu-live * { animation: none !important; transition: none !important; }
	.bfm[data-state="playing"] .bfm-wave i { height: 60%; }
	.bfm[data-state="playing"] .bfm-eq i { height: 70%; }
}

/* Tamaños fijos: el tema fuerza el ancho de los <button>. */
.bfm .bfm-fab { width: 62px !important; height: 62px !important; min-width: 62px !important; }
.bfm .bfm-play { width: 58px !important; height: 58px !important; min-width: 58px !important; }
.bfm .bfm-icon-btn { width: 36px !important; height: 36px !important; min-width: 36px !important; }
.bfm--full .bfm-play { width: 84px !important; height: 84px !important; min-width: 84px !important; }
@media (max-width: 600px) {
	.bfm .bfm-fab { width: 56px !important; height: 56px !important; min-width: 56px !important; }
	.bfm--full .bfm-play { width: 70px !important; height: 70px !important; min-width: 70px !important; }
}

/* Versión en página: aire a los lados en pantallas estrechas. */
.bfm--full { width: 100%; padding: 0 16px; }
