html {
	scroll-behavior: smooth;
	overflow: auto;
}

.floating-panel {
	position: fixed;
	top: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 40;
	width: 80%;
	max-width: 270px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: all 0.4s ease;
	cursor: grab;
	touch-action: none;
	/* evita scroll durante arrastre */
	user-select: none;
}

/* estilos de animación */
.floating-panel.is-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, -20px);
}

.floating-panel.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* botón de cierre */
.close-btn {
	position: absolute;
	top: 6px;
	right: 6px;
	background: none;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
}

/* Estilos para las pestañas del modal cuando se edita una canción */
/* Fija las flechas sin interferir con el contenido */
.modal-nav {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 3;
}

/* Los botones son clicables pero no rompen el layout */
.modal-nav .button {
	pointer-events: auto;
	opacity: 0.7;
	border-radius: 50%;
	width: 2.5rem;
	height: 2.5rem;
}

/* Hover solo en escritorio */
@media (hover: hover) {
	.modal-nav .button:hover {
		opacity: 1;
	}
}

/* Ajuste móvil: flechas se van abajo del modal */
@media (max-width: 768px) {
	.modal-nav {
		top: auto;
		bottom: 0.8rem;
		transform: none;
		justify-content: center;
		gap: 1rem;
	}

	.modal-nav .button {
		background: rgba(114, 224, 97, 0.8);
		color: #000;
	}
}

@media (min-width: 1024px) {
	.modal-nav {
		position: absolute;
		top: 50%;
		left: 0;
		width: 100%;
		display: flex;
		justify-content: space-between;
		transform: translateY(-50%);
		padding: 0 10rem;
		/* mover la cercania de las pestañas */
	}

	.modal-nav .button {
		margin: 0;
		scale: 0.9;
		/* opcional: reduce tamaño del botón */
	}
}


.button.is-static {
	opacity: 0.3;
	cursor: not-allowed;
}

/* Estilos para las pestañas del modal cuando se edita una canción */

/* ESTILOS PARA EL BOTÓN FLOTANTE */
.floating-top-button {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #3273dc;
	color: white;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: all 0.3s ease;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
}

.floating-top-button.visible {
	opacity: 1;
	visibility: visible;
}

.floating-top-button:hover {
	background-color: #276cda;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-top-button:active {
	transform: translateY(0);
}


.section {
	padding: 1.5rem;
}
/* ESTILOS PARA EL BOTÓN FLOTANTE */